- Vue d'ensemble (Overview)
- Interface de ligne de commande UiPath
- Extension Azure DevOps
- Plugin Jenkins
UiPath Pack
Application : RPA
Type : Créer une tâche
UiPath Pack est disponible dans les tâches et les pipelines standard et vous permet de packager un projet UiPath existant dans un package NuGet.
Configuration
| Paramètre de tâche | Description |
|---|---|
|
Choisir une méthode de contrôle de version |
Les packages UiPath sont versionnés. Avec le pack UiPath, vous pouvez choisir entre 3 options différentes : (1) Auto generate (2) Define custom version (3) Use the current version set in the project. |
|
Chemin d’accès au(x) projet(s) |
Emplacement du/des projet(s) à compresser. Il peut s’agir d’un chemin direct vers un fichier |
|
OutputFolder |
Chemin d'accès au dossier dans lequel vous souhaitez créer le package. |
|
Type de sortie |
Le type de sortie du ou des projets. Il existe 5 options pour le type de projet (s) : (1) Output type of the project (2) Pack a process project (3) Pack a library project (4) Pack a tests project (5) Pack an objects project. |
|
Exécuter l’analyse du workflow |
Exécutez l'analyse du workflow avant l'emballage, en vérifiant le projet via des règles prédéfinies pour les violations. Échec de la tâche en cas d'erreurs. Par défaut, l'analyse n'est pas exécutée. |
|
Niveau de journalisation du traçage |
Paramètre utilisé pour activer la journalisation du traçage à l'un des niveaux suivants :
|
|
Utiliser Orchestrator |
Use Orchestrator feed when packaging libraries. The Orchestrator must be 20.4 or higher. The library feed needs to allow API Key authentication in Tenant > Setting > Deployment. |
|
Adresse Orchestrator |
Spécifiez l’adresse de l’instance d’Orchestrator depuis laquelle les dépendances de bibliothèque doivent être restaurées. |
|
Locataire dʹOrchestrator |
Locataire Orchestrator à partir duquel les dépendances de bibliothèque doivent être restaurées. |
|
Authentification |
Pour l'authentification auprès d'Orchestrator, vous devez créer des informations d'identification dans Jenkins dès le départ. Il existe quatre options pour l'authentification : (1) Authenticate to an on-premise Orchestrator using username and password. (2) Authenticate to a cloud Orchestrator using a refresh token (API key). (3) Authenticate to a cloud Orchestrator using external app authentication. (4) Authenticate to an on-premise Orchestrator using . |
Exemple de pipeline
pipeline {
agent any
environment {
MAJOR = '1'
MINOR = '0'
}
stages {
stage ('Build') {
steps {
UiPathPack (
outputPath: "Output\)\)\)\)${env.BUILD_NUMBER}",
projectJsonPath: "UiBank\)\)\)\)project.json",
version: [$class: 'ManualVersionEntry', version: "${MAJOR}.${MINOR}.${env.BUILD_NUMBER}"]
useOrchestrator: true,
traceLoggingLevel: "None",
orchestratorAddress: "OrchestratorUrl",
orchestratorTenant: "tenant name",
credentials: [$class: 'UserPassAuthenticationEntry', credentialsId: “credentialsId”]
)
}
}
}
}
pipeline {
agent any
environment {
MAJOR = '1'
MINOR = '0'
}
stages {
stage ('Build') {
steps {
UiPathPack (
outputPath: "Output\)\)\)\)${env.BUILD_NUMBER}",
projectJsonPath: "UiBank\)\)\)\)project.json",
version: [$class: 'ManualVersionEntry', version: "${MAJOR}.${MINOR}.${env.BUILD_NUMBER}"]
useOrchestrator: true,
traceLoggingLevel: "None",
orchestratorAddress: "OrchestratorUrl",
orchestratorTenant: "tenant name",
credentials: [$class: 'UserPassAuthenticationEntry', credentialsId: “credentialsId”]
)
}
}
}
}