Sync eng/common directory with azure-sdk-tools for PR 1553 (#2108)

* Remove condition.

* Fix up system access token usage.

Co-authored-by: Mitch Denny <midenn@microsoft.com>
This commit is contained in:
Azure SDK Bot 2021-04-12 23:02:29 -07:00 committed by GitHub
parent ff2de0e506
commit edd6152632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,8 @@ parameters:
steps:
- task: PowerShell@2
displayName: Retain pipeline run
condition: ${{ parameters.Condition }}
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
pwsh: true
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Add-RetentionLease.ps1
@ -17,5 +18,5 @@ steps:
-RunId $(Build.BuildId)
-OwnerId Pipeline
-DaysValid ${{parameters.DaysValid}}
-Base64EncodedAuthToken $(System.AccessToken)
-Base64EncodedAuthToken $env:SYSTEM_ACCESSTOKEN
-Debug