Skip to content

Commit b1d0939

Browse files
Use PowerShell 1ES pool for the release build (#74)
1 parent 8593a14 commit b1d0939

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

tools/releaseBuild/yaml/releaseBuild.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
trigger: none
22

33
variables:
4-
AuthenticodeSignType: '400'
5-
BuildConfiguration: 'Release'
6-
NuGetPackagePath: '$(System.ArtifactsDirectory)/NuGetRelease'
7-
PackageRoot: '$(System.ArtifactsDirectory)/Packages'
4+
- name: BuildConfiguration
5+
value: 'Release'
6+
- name: NuGetPackagePath
7+
value: '$(System.ArtifactsDirectory)/NuGetRelease'
8+
- name: PackageRoot
9+
value: '$(System.ArtifactsDirectory)/Packages'
10+
- group: PSNativeAPIScan
811

912
resources:
1013
repositories:
@@ -36,7 +39,11 @@ stages:
3639
- template: windows-build.yml
3740

3841
- job: SignWin
39-
pool: Package ES Standard Build
42+
pool:
43+
name: PowerShell1ES
44+
demands:
45+
- ImageOverride -equals MMS2019
46+
4047
displayName: Sign Windows
4148
variables:
4249
- group: ESRP
@@ -84,7 +91,10 @@ stages:
8491
- SignWin
8592
- BuildLinux
8693
- BuildMac
87-
pool: Package ES Standard Build
94+
pool:
95+
name: PowerShell1ES
96+
demands:
97+
- ImageOverride -equals MMS2019
8898
variables:
8999
- group: ESRP
90100

@@ -97,7 +107,9 @@ stages:
97107
jobs:
98108
- job: Compliance_Job
99109
pool:
100-
name: Package ES Standard Build
110+
name: PowerShell1ES
111+
demands:
112+
- ImageOverride -equals MMS2019
101113
steps:
102114
- checkout: self
103115
clean: true
@@ -166,6 +178,7 @@ stages:
166178
softwareName: 'PowerShellNative'
167179
softwareNameFolder: '$(Pipeline.Workspace)/uncompressed'
168180
softwareVersion: '$(PackageVersion)'
181+
connectionString: RunAs=App;AppId=$(APIScanClient);TenantId=$(APIScanTenant);AppKey=$(APIScanSecret)
169182
APIScan: true # set to false when not using Windows APIs.
170183

171184
- template: publish.yml

0 commit comments

Comments
 (0)