Skip to content

Commit 307064e

Browse files
committed
Added parameters for veracode upload
1 parent a4ff9e9 commit 307064e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

azure-pipelines.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,28 @@ trigger:
33
include:
44
- develop
55

6+
schedules:
7+
- cron: "0 21-22 31 * *"
8+
displayName: Monthly build
9+
branches:
10+
include:
11+
- develop
12+
always: true
13+
614
pool:
715
name: win2016-vs2017
816
# name: Azure Pipelines
917

18+
parameters:
19+
- name: RUN_VERACODE_SCAN
20+
displayName: 'Upload to Veracode'
21+
type: boolean
22+
default: true
23+
- name: RUN_VERACODE_SCA
24+
displayName: 'Execute Veracode SCA'
25+
type: boolean
26+
default: false
27+
1028
steps:
1129
- checkout: self
1230
clean: true
@@ -19,7 +37,7 @@ steps:
1937
RunAsPreJob: true
2038
- task: PowerShell@2
2139
displayName: PowerShell Script
22-
condition: and(succeeded(), eq('${{ variables.veracodeSCA }}', 'true'))
40+
condition: and(succeeded(), eq('${{ parameters.RUN_VERACODE_SCA }}', 'true'))
2341
inputs:
2442
targetType: inline
2543
script: >
@@ -178,6 +196,7 @@ steps:
178196
workingDirectory: $(Build.SourcesDirectory)
179197
- task: Veracode@3
180198
displayName: 'Upload and scan: $(Build.ArtifactStagingDirectory)/StackifyLib.$(version).nupkg'
199+
condition: and(succeeded(), eq('${{ parameters.RUN_VERACODE_SCAN }}', 'true'))
181200
enabled: True
182201
inputs:
183202
AnalysisService: 51003f89-58ab-463c-8e20-41484888d9c7

0 commit comments

Comments
 (0)