-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsimple-pipeline.yaml
52 lines (44 loc) · 2.07 KB
/
simple-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This template will build the nuget package for the project on a commit to the master or a release* branch,
# then it will deploy to the 'prod' Orchestrator for the master branch, or the 'test' Orchestrator for a release* branch.
# There is no approval step in this pipeline, though package versions are not automatically changed to latest. That must be updated manually in Orchestrator after publishing.
variables:
# Update this to point to the path to your Project folder (folder containing the project.json).
projectPath: MyProject
trigger:
# Update branch triggers here.
branches:
include:
- master
- release*
paths:
include:
- MyProject/*
# You can switch this to use an existing build machine
pool:
vmImage: 'windows-latest'
steps:
# Install files needed for packaging/deploying. If you're using an build machine with UiPath already installed, you can remove this line.
- task: UiPathInstallPlatform-preview@2
# Package the project.
- task: UiPathPack@2
inputs:
# You might want to change the versionType logic.
versionType: 'AutoVersion'
projectJsonPath: '$(Build.SourcesDirectory)\$(projectPath)'
# This should match the name of the Orchestrator you are deploying to, which is defined in 'Service Connections' in Azure.
orchestratorConnection: prod
outputPath: '$(Build.ArtifactStagingDirectory)\Output'
- task: UiPathDeploy@2
condition: and(succeeded(), startsWith(variables['Build.SourceBranchName'], 'release'))
inputs:
# This should match the name of the Orchestrator you are deploying to, which is defined in 'Service Connections' in Azure.
orchestratorConnection: test
packagesPath: '$(Build.ArtifactStagingDirectory)\Output'
folderName: 'Default'
- task: UiPathDeploy@2
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))
inputs:
# This should match the name of the Orchestrator you are deploying to, which is defined in 'Service Connections' in Azure.
orchestratorConnection: prod
packagesPath: '$(Build.ArtifactStagingDirectory)\Output'
folderName: 'Default'