UiPath Documentation
cicd-integrations
2023.4
false
Guide de l'utilisateur des intégrations CI/CD
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Exécuter une tâche dans Orchestrator

Prerequisites:

  • Créez un processus dans Orchestrator.
  • Exécutez le fichier CLI exe (pour Windows) ou dll (pour Linux).
  • Add the required Orchestrator API access application scopes.

Pour exécuter une tâche dans Orchestrator, procédez comme suit :

  1. Exécutez la tâche job à l'aide de uipcli job. Vous pouvez maintenant voir une liste des sous-tâches disponibles.

  2. Spécifiez les paramètres requis et exécutez la sous-tâche run .

    Voir la liste des paramètres ci-dessous.

    ParamètreDescription
    -i, or --input_path (Required only if the entry point of the workflow has input parameters) Le chemin d'accès complet au fichier d'entrée JSON correspondant au processus que vous souhaitez exécuter.

    Exemple de format de fichier JSON :

    {
      "StringArgument_In": "MyConfigurationValue",
      "IntArgument_In": 1,
      "DictionaryArgument_In": {
        "Key1": "Value1",
        "Key2": "Value2"
      }
    }
    {
      "StringArgument_In": "MyConfigurationValue",
      "IntArgument_In": 1,
      "DictionaryArgument_In": {
        "Key1": "Value1",
        "Key2": "Value2"
      }
    }
    
    { "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }
    -P ou --priorityLa priorité avec laquelle vous souhaitez exécuter la tâche :- Faible.- Normal (par défaut).- Élevé.
    -r ou --robotsUne liste de noms de robots spécifiques, séparés par des virgules.
    -j ou --jobscountLe nombre de fois que vous souhaitez exécuter le processus. Le nombre d'exécutions par défaut du processus est de un.
    -U ou --userThe name of the user. This should be a machine user, not an Orchestrator user. For local users, the format is MachineName\UserName.
    -M ou --machineLe nom de la machine sur laquelle vous souhaitez exécuter le processus.
    -R ou --result_pathChemin d'accès complet à un fichier JSON ou à un dossier dans lequel vous souhaitez stocker les résultats de la tâche. Les résultats sont renvoyés sous forme de fichiers JSON.
    -W ou --timeoutDélai d’expiration des exécutions de tâches (secondes). La valeur par défaut est de 1 800 secondes.
    -f ou --fail_when_job_failsThe command fails when one job fails, The default for this is True.
    -w ou --waitThe command waits for the job to finish. The default for this is True.
    -b ou --job_type (pour les dossiers modernes uniquement) Type de runtime de la tâche. Vous pouvez choisir :- Unattended - NonProduction .
    -u, or --username (Required if you use Basic Authentication, through a username and a password) Le nom d'utilisateur utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au mot de passe correspondant.
    -p, or --password (Required if you use Basic Authentication, through a username and a password) Le mot de passe utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au nom d'utilisateur correspondant.
    -t, or --token (Required if you use token-based authentication) The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID.
    -a, or --accountName (Required if you use token-based authentication) The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID.
    -A ou --accountForAppThe Orchestrator CloudRPA account name (organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application.
    -I, or --applicationId (Required if you use external application authentication) The external Application ID. You must pair it with the Application Account, Application Secret, and Application scope.
    -S, or --applicationSecret (Required if you use external application authentication) The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope.
    --applicationScope (Required if you use external application authentication) The list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external application.
    -o ou --organizationUnitLe nom du dossier Orchestrator (unité d'organisation).

    Pour saisir des sous-dossiers, assurez-vous de saisir à la fois le nom du dossier parent et le nom du sous-dossier. Par exemple, utilisez AccountingTeam\TeamJohn.

    -l, --language

    La langue d'Orchestrator.

    -y, --disableTelemetry

    Désactiver les données de télémétrie

    --traceLevel

    Afficher la trace des événements.

    --identityUrl (Required only for PaaS deployments)

    L'URL de votre serveur d'identité.

    --help

    Affiche les paramètres et des exemples de cette commande.

    --version

    Affiche les informations de version.

    Process Name (pos.0) (Required) Le nom du processus que vous souhaitez exécuter.
    Orchestrator URL (pos.1) (Required) Il s'agit de l'URL de votre Orchestrator.
    Orchestrator Tenant (pos.2)
    • (Required) for SaaP deployments.

    • (Optional) for PaaS deployments.

    Le locataire de l'instance d'Orchestrator, où vous souhaitez exécuter des processus.

Utilisation :

job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-l <language>]
job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-l <language>]

Exemples :

  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Low
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Normal -o MyFolder
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P High -o MyFolder
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -f false -W 0
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P High -j 3 -w false
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P Low -r robotName -R C:\Temp
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -r robotName -R C:\Temp\status.json
  • job run ProcessName "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read" -r robotName -R C:\Temp\status.json

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour