@@ -209,25 +209,33 @@ extends:
209209 type : windows
210210 steps :
211211 - checkout : self
212+ env :
213+ ob_restore_phase : true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
212214
213215 - pwsh : |
214216 if (-not (Test-Path $(repoRoot)/.config/tsaoptions.json)) {
215217 Get-ChildItem $(Build.SourcesDirectory) -recurse -ErrorAction SilentlyContinue
216218 throw "tsaoptions.json does not exist under $(repoRoot)/.config"
217219 }
218220 displayName: Test if tsaoptions.json exists
221+ env:
222+ ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
219223
220224 - task : DownloadPipelineArtifact@2
221225 displayName : ' Download build files'
222226 inputs :
223227 targetPath : $(signOutPath)
224228 artifact : drop_stagebuild_jobbuild
229+ env :
230+ ob_restore_phase : true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
225231
226232 - pwsh : |
227233 Set-Location "$(signOutPath)"
228234 Write-Host "Contents of signOutPath:"
229235 Get-ChildItem $(signOutPath) -Recurse
230236 displayName: Capture artifacts directory structure
237+ env:
238+ ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
231239
232240 - pwsh : |
233241 # This need to be done before set-location so the module from PSHome is loaded
@@ -242,12 +250,16 @@ extends:
242250 Publish-PSResource -Path "$(signOutPath)\Microsoft.PowerShell.PSResourceGet" -Repository 'localRepo' -Verbose
243251 Write-Output "##vso[task.setvariable variable=publishPath]$publishPath"
244252 displayName: Create nupkg for publishing
253+ env:
254+ ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
245255
246256 - pwsh : |
247257 Set-Location '$(publishPath)'
248258 Write-Host "Contents of signOutPath:"
249259 Get-ChildItem '$(publishPath)' -Recurse
250260 displayName: Find Nupkg Pre Signing
261+ env:
262+ ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
251263
252264 - task : onebranch.pipeline.signing@1
253265 displayName : Sign nupkg
0 commit comments