@@ -209,33 +209,25 @@ 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.
214212
215213 - pwsh : |
216214 if (-not (Test-Path $(repoRoot)/.config/tsaoptions.json)) {
217215 Get-ChildItem $(Build.SourcesDirectory) -recurse -ErrorAction SilentlyContinue
218216 throw "tsaoptions.json does not exist under $(repoRoot)/.config"
219217 }
220218 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.
223219
224220 - task : DownloadPipelineArtifact@2
225221 displayName : ' Download build files'
226222 inputs :
227223 targetPath : $(signOutPath)
228224 artifact : drop_stagebuild_jobbuild
229- env :
230- ob_restore_phase : true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
231225
232226 - pwsh : |
233227 Set-Location "$(signOutPath)"
234228 Write-Host "Contents of signOutPath:"
235229 Get-ChildItem $(signOutPath) -Recurse
236230 displayName: Capture artifacts directory structure
237- env:
238- ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
239231
240232 - pwsh : |
241233 # This need to be done before set-location so the module from PSHome is loaded
@@ -250,16 +242,12 @@ extends:
250242 Publish-PSResource -Path "$(signOutPath)\Microsoft.PowerShell.PSResourceGet" -Repository 'localRepo' -Verbose
251243 Write-Output "##vso[task.setvariable variable=publishPath]$publishPath"
252244 displayName: Create nupkg for publishing
253- env:
254- ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
255245
256246 - pwsh : |
257247 Set-Location '$(publishPath)'
258248 Write-Host "Contents of signOutPath:"
259249 Get-ChildItem '$(publishPath)' -Recurse
260250 displayName: Find Nupkg Pre Signing
261- env:
262- ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step.
263251
264252 - task : onebranch.pipeline.signing@1
265253 displayName : Sign nupkg
0 commit comments