Add 'ob_restore_phase' for every task before the signing task to work around the signing issue (#4046)

This commit is contained in:
Dongbo Wang
2024-06-20 16:56:52 -07:00
committed by GitHub
parent 6327a1a963
commit eff1452a64
+8
View File
@@ -201,9 +201,13 @@ extends:
type: windows
steps:
- checkout: self
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
- task: DownloadPipelineArtifact@2
displayName: 'Download build files'
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
inputs:
targetPath: $(signOutPath)
artifact: drop_buildstage_buildjob
@@ -212,6 +216,8 @@ extends:
Get-ChildItem $(signOutPath) -Recurse
New-Item -Path $(nugetPath) -ItemType Directory > $null
displayName: Capture artifacts structure
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
- pwsh: |
try {
@@ -223,6 +229,8 @@ extends:
}
Get-ChildItem -Path $(nugetPath)
displayName: 'Create the NuGet package'
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
- task: onebranch.pipeline.signing@1
displayName: Sign nupkg