UiPath Documentation
cicd-integrations
2022.10
false
Benutzerhandbuch zu CI/CD-Integrationen
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

UiPath Pack

Mit der UiPathPack-Aufgabe können Sie ein vorhandenes UiPath-Projekt in ein NuGet-Paket packen.

Konfiguration

Verwenden Sie die folgende Tabelle, um die Eingaben von UiPath Pack zu konfigurieren.

ArgumentBeschreibung
Anzeigename (erforderlich) Geben Sie einen Namen für Ihre Aufgabe ein.
Versionsverwaltungsmethode auswählen (erforderlich) You can select an automatically generated version, use the project version, or define a new version. For more information, see Package Versions.
Version (erforderlich) Nur für moderne Ordner zusammen mit einer dynamischen Zuordnungsstrategie verfügbar. Das Festlegen der Paketversion bietet die Möglichkeit, die erstellten Pakete und deren Quellversionen effizienter zu verfolgen. Beispielsweise kann das Microsoft-Assembly-Muster verwendet werden, um die NuGet-Paketversion zu erstellen: [Hauptversion].[Nebenversion].[Buildnummer].[Revisionsnummer].

Die verfügbaren Optionen sind:

  • AutoVersion: This option automatically updates the version to the next sequential number. You can use the following task configuration example:

    - task: UiPathPack@3
      inputs:
        versionType: AutoVersion
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    - task: UiPathPack@3
      inputs:
        versionType: AutoVersion
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    
    - task: UiPathPack@3 inputs: versionType: AutoVersion projectJsonPath: '$(projectFolder)/project.json' outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
  • ManualVersion: With this option, you can specify your own version number. You can use the following task configuration example:

    - task: UiPathPack@3
      inputs:
        versionType: ManualVersion
        version: '$(Build.BuildNumber)'
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    - task: UiPathPack@3
      inputs:
        versionType: ManualVersion
        version: '$(Build.BuildNumber)'
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    
    - task: UiPathPack@3 inputs: versionType: ManualVersion version: '$(Build.BuildNumber)' projectJsonPath: '$(projectFolder)/project.json' outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
  • CurrentVersion: This option keeps the version the same as specified in the project.json file. You can use the following task configuration example:

    - task: UiPathPack@3
      inputs:
        versionType: CurrentVersion
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    - task: UiPathPack@3
      inputs:
        versionType: CurrentVersion
        projectJsonPath: '$(projectFolder)/project.json'
        outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
    
    - task: UiPathPack@3 inputs: versionType: CurrentVersion projectJsonPath: '$(projectFolder)/project.json' outputPath: '$(Build.ArtifactStagingDirectory)\artifact-manifests'
Projektpfad (erforderlich) Wählen Sie den Speicherort des Projekts aus, das verpackt werden soll. Dies kann ein direkter Pfad zu einer PROJECT.JSON-Datei oder einem Verzeichnis mit einem oder mehreren Projekten sein. Im letzteren Fall wird jedes Projekt der Ebene eins einzeln gepackt.
Ausgabetyp auswählen (nur für manuelle Versionierung erforderlich) Legen Sie einen Projekttyp für das Projekt fest, das gepackt werden soll. Wenn Sie None festlegen, wird der Projekttyp aus der JSON-Datei des Projekts extrahiert. Die folgenden Projekttypen werden unterstützt: „Process“, „Library“, „Tests“, „Objects“, „None“.
Orchestrator-Verbindung (erforderlich) Configure the service connection to access UiPath Orchestrator services. You can configure a connection only for this step or use an existing global connection. For more information, see Configuring UiPath Orchestrator service connection.
Ausgabepfad (Erforderlich) Legen Sie einen Ordnerpfad fest, auf dem das Paket abgelegt werden soll.
Workflow-Analyse ausführenSelect this option to run workflow analysis rules on your automation project (e.g., Fail jobs in case of errors). By default, this option is not activated. For more information, see Application Testing Workflow Analyzer Rules.
AblaufverfolgungsstufeWählen Sie die Protokollierungsstufe aus der Dropdownliste aus.

YAML-Pipeline

Sie können eine Vorschau eines vollständig geparsten YAML-Dokuments für das UiPath Pack anzeigen.

- task: UiPathPack@2
  inputs:
    #versionType: AutoVersion # Options: AutoVersion, CurrentVersion, ManualVersion
    #version: '1.0.0' # Required when versionType == ManualVersion
    #projectJsonPath: '$(Build.SourcesDirectory)\MyFirstProcess'
    #outputPath: '$(Build.ArtifactStagingDirectory)\Packages\MyFirstProcess'
    #outputType: 'None' # Options: Process, Library, Tests, Objects, None
    #runWorkflowAnalysis: 'False'
    #orchestratorConnection: 'service-connection-name' # Service connection to UiPath Orchestrator,
    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None
- task: UiPathPack@2
  inputs:
    #versionType: AutoVersion # Options: AutoVersion, CurrentVersion, ManualVersion
    #version: '1.0.0' # Required when versionType == ManualVersion
    #projectJsonPath: '$(Build.SourcesDirectory)\MyFirstProcess'
    #outputPath: '$(Build.ArtifactStagingDirectory)\Packages\MyFirstProcess'
    #outputType: 'None' # Options: Process, Library, Tests, Objects, None
    #runWorkflowAnalysis: 'False'
    #orchestratorConnection: 'service-connection-name' # Service connection to UiPath Orchestrator,
    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None
  • Konfiguration
  • YAML-Pipeline

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben