Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 1553 (#18002)
Browse files Browse the repository at this point in the history
* Remove condition.

* Fix up system access token usage.

Co-authored-by: Mitch Denny <[email protected]>
  • Loading branch information
azure-sdk and mitchdenny authored Apr 13, 2021
1 parent a992c8b commit e558eaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eng/common/pipelines/templates/steps/retain-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,5 +18,5 @@ steps:
-RunId $(Build.BuildId)
-OwnerId Pipeline
-DaysValid ${{parameters.DaysValid}}
-Base64EncodedAuthToken $(System.AccessToken)
-Base64EncodedAuthToken $env:SYSTEM_ACCESSTOKEN
-Debug

0 comments on commit e558eaf

Please sign in to comment.