Skip to content

Commit 4950869

Browse files
committed
Allow for unofficial builds from 1esmain pipeline
1 parent 0aa1059 commit 4950869

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

azure-pipelines/1esmain.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ parameters:
1111
default: []
1212
- name: enableSigning
1313
type: boolean
14-
default: True
14+
default: true
15+
- name: isOfficialBuild
16+
type: boolean
17+
default: true
1518

1619
# `resources` specifies the location of templates to pick up, use it to get 1ES templates
1720
resources:
@@ -22,12 +25,16 @@ resources:
2225
ref: refs/tags/release
2326

2427
extends:
25-
template: azure-pipelines/MicroBuild.1ES.Official.yml@1esPipelines
28+
${{ if eq(parameters.isOfficialBuild, true) }}:
29+
template: azure-pipelines/MicroBuild.1ES.Official.yml@1esPipelines
30+
${{ else }}:
31+
template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@1esPipelines
2632
parameters:
2733
sdl:
28-
tsa:
29-
enabled: true
30-
configFile: '$(Build.SourcesDirectory)\.azure-pipelines\compliance\tsaoptions.json'
34+
${{ if eq(parameters.IsOfficialBuild, true) }}:
35+
tsa:
36+
enabled: true
37+
configFile: '$(Build.SourcesDirectory)\.azure-pipelines\compliance\tsaoptions.json'
3138
suppression:
3239
suppressionFile: $(Build.SourcesDirectory)\.config\guardian\.gdnsuppress
3340
credscan:

0 commit comments

Comments
 (0)