-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
112 lines (104 loc) · 3.42 KB
/
azure-pipelines.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
trigger:
- master
variables:
- group: DEV
stages:
- stage: Build
displayName: Build Package
jobs:
- job: BuildPackage
pool: LAPTOP-Q338O4FK
steps:
- task: UiPathPack@2
inputs:
versionType: 'AutoVersion'
projectJsonPath: '$(Build.SourcesDirectory)\project.json'
outputType: 'Process'
orchestratorConnection: 'UiPath DEV'
outputPath: '$(Build.ArtifactStagingDirectory)'
- publish: $(Build.ArtifactStagingDirectory)
artifact: drop
- stage: Assest
displayName: Create Assests
jobs:
- job: CreateAssests
pool: LAPTOP-Q338O4FK
steps:
- task: UiPathAssets@2
inputs:
orchestratorConnection: 'UiPath DEV'
folderName: 'Shared'
assetActionType: 'Deploy'
csvFile: '$(Build.SourcesDirectory)\Data\Assests.csv'
- stage: DeployDEV
displayName: Deploy build artifact to DEV
dependsOn: Build
condition: succeeded()
jobs:
- deployment: deployDEV
displayName: Deploy package to DEV Orchestrator
pool: LAPTOP-Q338O4FK
environment: DEV
strategy:
runOnce:
deploy:
steps:
- task: UiPathDeploy@2
inputs:
orchestratorConnection: 'UiPath DEV'
packagesPath: '$(Pipeline.Workspace)\drop\'
folderName: 'Shared'
- stage: WorkflowAnalyser
displayName: RunWorkflow Analyser
dependsOn: Build
condition: succeeded()
jobs:
- job: WorkflowAnalyser
displayName: AnalyseProject Using Workflow Cli
pool: LAPTOP-Q338O4FK
steps:
- task: PowerShell@2
inputs:
targetType: filePath
filePath: $(Build.SourcesDirectory)\Data\Workflow-Analyzer-CLI-Script
arguments: > # Use this to avoid newline characters in multiline string
-ProjectFilePath $(Build.SourcesDirectory)\project.json
-ExecutableFilePath "C:\Users\prasa\AppData\Local\UiPath\app-21.4.4\UiPath.Studio.CommandLine.exe"
-OutputFilePath '$(Pipeline.Workspace)\drop\Workflow-Analysis.json'
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Analyse Project'
- stage : CodeQuality
displayName: Check Code Analysis
dependsOn: Build
condition: succeeded()
jobs:
- job : CodeQuality
steps:
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'Sonar'
organization: 'rpabotsworld'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'rpabotsworld_UiPathAzureDevOpsExample'
cliProjectName: 'UiPathAzureDevOpsExample'
cliSources: '.'
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'
- stage: TestDEV
displayName: Test After Publish
dependsOn: DeployDEV
condition: succeeded()
jobs:
- job: TestDEV
pool: LAPTOP-Q338O4FK
steps:
- task: UiPathTest@2
inputs:
testTarget: 'TestSet'
orchestratorConnection: 'UiPATH RPABOTSWORLD'
testSet: 'UiPathAzureDevOps_Tests'
folderName: 'Shared'
testReportDestination: '$(Pipeline.Workspace)\drop\'