Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 3e92cc1

Browse files
authored
merge build and sign jobs (#26)
1 parent 0bff1c0 commit 3e92cc1

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

yaml/releaseBuild.yml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,23 @@ resources:
3939
name: PowerShell/compliance
4040

4141
stages:
42-
- stage: Build
43-
displayName: Build
42+
- stage: Build and Sign
43+
displayName: Build and Sign
4444
jobs:
45-
- job: 'ReleaseBuild'
46-
displayName: Release Build
45+
- job: 'BuildAndSign'
46+
variables:
47+
- group: ESRP
48+
displayName: Build and Sign
4749
pool:
4850
name: PowerShell1ES
4951
demands:
5052
- ImageOverride -equals PSMMS2019-Secure
5153
steps:
54+
- powershell: |
55+
Get-ChildItem -Path env:
56+
displayName: Capture environment
57+
condition: succeededOrFailed()
58+
steps:
5259
- pwsh: |
5360
# build agents get reused so we make sure to remove the old archive
5461
Remove-Item -Path $(Build.SourcesDirectory)/SignedZip -Recurse -Force -ErrorAction Ignore
@@ -62,26 +69,6 @@ stages:
6269
displayName: Build
6370
- publish: "out/"
6471
artifact: out
65-
- job: 'SignBuild'
66-
variables:
67-
- group: ESRP
68-
displayName: Signing Build
69-
dependsOn: 'ReleaseBuild'
70-
pool:
71-
name: PowerShell1ES
72-
demands:
73-
- ImageOverride -equals PSMMS2019-Secure
74-
steps:
75-
- powershell: |
76-
Get-ChildItem -Path env:
77-
displayName: Capture environment
78-
condition: succeededOrFailed()
79-
80-
- task: DownloadPipelineArtifact@2
81-
displayName: 'Download Pipeline Artifacts'
82-
inputs:
83-
artifact: 'out'
84-
path: $(Build.SourcesDirectory)/out
8572

8673
- template: EsrpSign.yml@ComplianceRepo
8774
parameters:

0 commit comments

Comments
 (0)