In the case you have 3 orchestrators (development, test, production) you have to do a lot of manual work with uploading packages to different orchestrators.
This guide shows step by step how to create a CD/CI pipeline which do the follwing things:
- After a commit to a branch it creates a nuget packages and uploads it to TEST orchestrator
- After an approval the packages will also be deployed to the PRODUCTION orchestrator.
Prerequisits:
-
Install from marketplace UiPath Integration - Visual Studio Marketplace
-
Create new user on test and productiv orchestrator, which the pipeline can use to upload the packages.
Step 1: Create Repository
Create a new GIT repository on Azure DevOps
Step 2: Setup Build
(With this step you create the mechanisme that a new nugetpackaged will be builded after a commit to the branch. Is also creates the artifact used in step 3)
-
Create a new Build with
Click “New” → “New build pipeline”
-
Select «Use the classic editor»
-
Select Repository and Branch
-
Click “Empty job”
-
Select Agent Pool
(Important: Agent must have access to orchestrator. In our company we must select an internal build server)
-
Add UiPath task
Click on “+” and then search for uipath and then press install.
-
Adding Variables
$(counter(x,y) → x is stepsize, y is starting point – more infos here (under “Set variables using expressions”) -
Set the following setting:
$(studioVersion) Variable is set to “19.10.1” $(version) Variable is set to “$[counter(1,1)]” -
Add “Publish build artifacts” Task
-
Change settings of this task
Step 3: Create Release for deploy to TEST Orchestrator
(With this step we create the mechanisme that the created packages will be upload automatic to test server)
-
Click on “Releases”
-
Click “New” → “New release pipeline”
-
Click “Empty Job”
-
Click “Add an artifact”
-
Select Build (build from previous step)
-
Click on “1 job, 0 task”
-
Click on “Agent job” and set the parameters
-
Click on + next to Agentjob and add “UiPath Integration” Task
-
Set task settings
With following variables:
Important: Create a user in orchestrator and use username (like “buildserver” here and password here. -
Set Trigger
Step 4: Create Release for deployment to PRODUCTIVE Orchestrator
Do the same as “Step 3” also for the productive orchestrator and add triggers when the deployment should be executed.
Finally, it should look like:
Next steps
- Include Workflow Analyzer to pipeline
Open points:
- Direct upload and update of process should be possible.