forked from jenkinsci/uipath-automation-package-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.jobs.template.yml
44 lines (40 loc) · 1.46 KB
/
build.jobs.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
parameters:
name: ''
securityScan: ''
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.name }}
timeoutInMinutes: 90
workspace:
clean: outputs
variables:
MavenPOMFile: '$(Build.SourcesDirectory)/pom.xml'
pool:
vmImage: windows-latest
demands:
- maven
steps:
- ${{ if eq(parameters.securityScan, 'CODEQL') }}:
- template: Security/codeql.pre-build.steps.yml@codeql
parameters:
os: 'win64'
language: 'java'
- template: job.ci.build.yml
parameters:
${{ if eq(parameters.securityScan, '') }}:
publishArtifacts: true
- ${{ if eq(parameters.securityScan, 'CODEQL') }}:
- template: Security/codeql.post-build.steps.yml@codeql
parameters:
os: 'win64'
language: 'java'
azureSubscription: 'Internal-Production-EA'
skipDatabasePublish: true
- ${{ if eq(parameters.securityScan, 'FOSSA') }}:
- template: Security/fossa.steps.yml@fossa
parameters:
removeSpecificPath: true
OS: 'windows'
azureSubscription: 'Internal-Production-EA'
FOSSAFlags: '--project "JenkinsPlugin" --branch "$(Build.SourceBranchName)" --revision "$(Build.SourceVersion)-$(Build.BuildId)"'
FOSSATestFlags: '--project "JenkinsPlugin" --revision "$(Build.SourceVersion)-$(Build.BuildId)"'