From cf502f6da08cf06ca6e7086b2f2f2d646ba1bc07 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 20 Jun 2024 14:35:32 -0700 Subject: [PATCH] Add 'ob_restore_phase' for every task before the signing task to workaround the watcher issue --- .pipelines/PSReadLine-Official.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pipelines/PSReadLine-Official.yml b/.pipelines/PSReadLine-Official.yml index 289a34c1a..1a2833e33 100644 --- a/.pipelines/PSReadLine-Official.yml +++ b/.pipelines/PSReadLine-Official.yml @@ -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