Skip to content

Commit e558eaf

Browse files
Sync eng/common directory with azure-sdk-tools for PR 1553 (Azure#18002)
* Remove condition. * Fix up system access token usage. Co-authored-by: Mitch Denny <[email protected]>
1 parent a992c8b commit e558eaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eng/common/pipelines/templates/steps/retain-run.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ parameters:
66
steps:
77
- task: PowerShell@2
88
displayName: Retain pipeline run
9-
condition: ${{ parameters.Condition }}
9+
env:
10+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
1011
inputs:
1112
pwsh: true
1213
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Add-RetentionLease.ps1
@@ -17,5 +18,5 @@ steps:
1718
-RunId $(Build.BuildId)
1819
-OwnerId Pipeline
1920
-DaysValid ${{parameters.DaysValid}}
20-
-Base64EncodedAuthToken $(System.AccessToken)
21+
-Base64EncodedAuthToken $env:SYSTEM_ACCESSTOKEN
2122
-Debug

0 commit comments

Comments
 (0)