Skip to content

Commit bacb8bb

Browse files
committed
Add 'ob_restore_phase' for every task before the signing task to work around the signing issue (#4046)
1 parent 7622c6a commit bacb8bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pipelines/PSReadLine-Official.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,13 @@ extends:
201201
type: windows
202202
steps:
203203
- checkout: self
204+
env:
205+
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
204206

205207
- task: DownloadPipelineArtifact@2
206208
displayName: 'Download build files'
209+
env:
210+
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
207211
inputs:
208212
targetPath: $(signOutPath)
209213
artifact: drop_buildstage_buildjob
@@ -212,6 +216,8 @@ extends:
212216
Get-ChildItem $(signOutPath) -Recurse
213217
New-Item -Path $(nugetPath) -ItemType Directory > $null
214218
displayName: Capture artifacts structure
219+
env:
220+
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
215221
216222
- pwsh: |
217223
try {
@@ -223,6 +229,8 @@ extends:
223229
}
224230
Get-ChildItem -Path $(nugetPath)
225231
displayName: 'Create the NuGet package'
232+
env:
233+
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
226234
227235
- task: onebranch.pipeline.signing@1
228236
displayName: Sign nupkg

0 commit comments

Comments
 (0)