@@ -158,41 +158,3 @@ stages:
158158 CloseAfterOpenForTesting : ' ${{parameters.TestPipeline}}'
159159 ${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }} :
160160 BaseBranchName : main
161-
162- - ${{ if eq(parameters.TestPipeline, true) }} :
163- - job : ManualApproval
164- displayName : " Manual approval"
165- dependsOn : PublishPackage
166- condition : ne(variables['Skip.PublishPackage'], 'true')
167- pool : server
168- timeoutInMinutes : 120 # 2 hours
169- steps :
170- - task : ManualValidation@1
171- timeoutInMinutes : 60 # 1 hour
172- inputs :
173- notifyUsers : ' ' # Required, but empty string allowed
174- allowApproversToApproveTheirOwnRuns : true
175- instructions : " Approve yank of ${{ artifact.name }}"
176- onTimeout : ' resume'
177-
178- - job : YankCrates
179- displayName : " Yank Crates"
180- dependsOn : ManualApproval
181- condition : and(succeeded(), ne(variables['Skip.PublishPackage'], 'true'))
182- steps :
183- - template : /eng/common/pipelines/templates/steps/sparse-checkout.yml
184-
185- - download : current
186- displayName : Download ${{parameters.PipelineArtifactName}} artifact
187- artifact : ${{parameters.PipelineArtifactName}}
188-
189- - task : PowerShell@2
190- displayName : Yank Crates
191- env :
192- CARGO_REGISTRY_TOKEN : $(azure-sdk-cratesio-token)
193- inputs :
194- targetType : filePath
195- filePath : $(Build.SourcesDirectory)/eng/scripts/Yank-Crates.ps1
196- arguments :
197- -CrateNames '${{artifact.name}}'
198- -PackageInfoDirectory '$(Pipeline.Workspace)/${{parameters.PipelineArtifactName}}/PackageInfo'
0 commit comments