Skip to content

Commit

Permalink
Use PowerShell 1ES pool for the release build (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatwardhan authored Sep 29, 2021
1 parent 8593a14 commit b1d0939
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions tools/releaseBuild/yaml/releaseBuild.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
trigger: none

variables:
AuthenticodeSignType: '400'
BuildConfiguration: 'Release'
NuGetPackagePath: '$(System.ArtifactsDirectory)/NuGetRelease'
PackageRoot: '$(System.ArtifactsDirectory)/Packages'
- name: BuildConfiguration
value: 'Release'
- name: NuGetPackagePath
value: '$(System.ArtifactsDirectory)/NuGetRelease'
- name: PackageRoot
value: '$(System.ArtifactsDirectory)/Packages'
- group: PSNativeAPIScan

resources:
repositories:
Expand Down Expand Up @@ -36,7 +39,11 @@ stages:
- template: windows-build.yml

- job: SignWin
pool: Package ES Standard Build
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019

displayName: Sign Windows
variables:
- group: ESRP
Expand Down Expand Up @@ -84,7 +91,10 @@ stages:
- SignWin
- BuildLinux
- BuildMac
pool: Package ES Standard Build
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019
variables:
- group: ESRP

Expand All @@ -97,7 +107,9 @@ stages:
jobs:
- job: Compliance_Job
pool:
name: Package ES Standard Build
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019
steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -166,6 +178,7 @@ stages:
softwareName: 'PowerShellNative'
softwareNameFolder: '$(Pipeline.Workspace)/uncompressed'
softwareVersion: '$(PackageVersion)'
connectionString: RunAs=App;AppId=$(APIScanClient);TenantId=$(APIScanTenant);AppKey=$(APIScanSecret)
APIScan: true # set to false when not using Windows APIs.

- template: publish.yml
Expand Down

0 comments on commit b1d0939

Please sign in to comment.