forked from UiPath/uipath-automation-package-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.steps.template.yml
49 lines (47 loc) · 2.58 KB
/
build.steps.template.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
parameters:
mavenPomFile: ''
TestOrchestratorUrl: ''
TestOrchestratorUsername: ''
TestOrchestratorPassword: ''
TestOrchestratorFolderName: ''
TestOrchestratorCloudUrl: ''
TestOrchestratorCloudTenant: ''
TestOrchestratorAccountName: ''
TestOrchestratorAuthenticationToken: ''
TestOrchestratorCloudModernFolderName: ''
TestOrchestratorClientIdOverride: ''
TestOrchestratorAuthorizationUriOverride: ''
TestOrchestratorCloudUserName: ''
TestOrchestratorCloudMachineName: ''
TestOrchestratorCloudUnattendedRobotName: ''
steps:
- task: Maven@3
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/master') }}:
displayName: 'Build plugin package (Java 8)'
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
displayName: 'Build plugin package & run unit tests (Java 8)'
inputs:
mavenPomFile: ${{parameters.mavenPomFile}}
testResultsFiles: '**/TEST-*.xml'
sonarQubeRunAnalysis: false
findBugsRunAnalysis: true
sqMavenPluginVersionChoice: 'latest'
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
options: '-Dsonar.projectKey=jenkins-plugin -Duser.name=UiPath --no-transfer-progress -Dmaven.artifact.threads=16 -T 4 -DrerunFailingTestsCount=0'
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/master') }}:
options: '-DskipTests -Dsonar.projectKey=jenkins-plugin -Duser.name=UiPath --no-transfer-progress -Dmaven.artifact.threads=16 -T 4 -DrerunFailingTestsCount=0'
env:
TestOrchestratorUrl: ${{parameters.TestOrchestratorUrl}}
TestOrchestratorUsername: ${{parameters.TestOrchestratorUsername}}
TestOrchestratorPassword: ${{parameters.TestOrchestratorPassword}}
TestOrchestratorFolderName: ${{parameters.TestOrchestratorFolderName}}
TestOrchestratorCloudUrl: ${{parameters.TestOrchestratorCloudUrl}}
TestOrchestratorCloudTenant: ${{parameters.TestOrchestratorCloudTenant}}
TestOrchestratorAccountName: ${{parameters.TestOrchestratorAccountName}}
TestOrchestratorAuthenticationToken: ${{parameters.TestOrchestratorAuthenticationToken}}
TestOrchestratorCloudModernFolderName: ${{parameters.TestOrchestratorCloudModernFolderName}}
TestOrchestratorClientIdOverride: ${{parameters.TestOrchestratorClientIdOverride}}
TestOrchestratorAuthorizationUriOverride: ${{parameters.TestOrchestratorAuthorizationUriOverride}}
TestOrchestratorCloudUserName: ${{parameters.TestOrchestratorCloudUserName}}
TestOrchestratorCloudMachineName: ${{parameters.TestOrchestratorCloudMachineName}}
TestOrchestratorCloudUnattendedRobotName: ${{parameters.TestOrchestratorCloudUnattendedRobotName}}