Skip to content

Commit 274d46a

Browse files
committed
Switched pipelines to new sign mechanism
1 parent 3de65fb commit 274d46a

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

azure-pipelines/build.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ resources:
1717
- repository: self
1818
type: git
1919
ref: refs/heads/main
20-
- repository: 1ESPipelineTemplates
20+
- repository: MicroBuildTemplate
2121
type: git
22-
name: 1ESPipelineTemplates/1ESPipelineTemplates
22+
name: 1ESPipelineTemplates/MicroBuildTemplate
2323
ref: refs/tags/release
2424

2525
parameters:
26-
- name: signType
27-
type: string
28-
default: real
29-
values:
30-
- test
31-
- real
3226
- name: BuildConfiguration
3327
type: string
3428
default: Release
@@ -43,8 +37,10 @@ variables:
4337
value: true
4438

4539
extends:
46-
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
40+
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
4741
parameters:
42+
settings:
43+
networkIsolationPolicy: Permissive
4844
pool:
4945
name: VSEngSS-MicroBuild2022-1ES
5046
sdl:
@@ -60,6 +56,15 @@ extends:
6056
timeoutInMinutes: 600
6157
cancelTimeoutInMinutes: 1
6258
templateContext:
59+
mb:
60+
signing:
61+
enabled: true
62+
# Set signType to real if the build is a CI, otherwise use test
63+
${{ if or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Schedule')) }}:
64+
signType: real
65+
signWithProd: true
66+
${{ else }}:
67+
signType: test
6368
sdl:
6469
codeSignValidation:
6570
enabled: false
@@ -87,13 +92,6 @@ extends:
8792
fetchTags: false
8893
persistCredentials: True
8994

90-
- task: MicroBuildSigningPlugin@4
91-
name: MicroBuildSigningPlugin_1
92-
displayName: Install Signing Plugin
93-
inputs:
94-
signType: ${{ parameters.signType }}
95-
zipSources: false
96-
9795
- task: MicroBuildLocalizationPlugin@4
9896
name: MicroBuildLocalizationPlugin_2
9997
displayName: Install Localization Plugin

0 commit comments

Comments
 (0)