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:
parent
ff2de0e506
commit
edd6152632
@ -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
|
||||
Loading…
Reference in New Issue
Block a user