We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a992c8b commit e558eafCopy full SHA for e558eaf
eng/common/pipelines/templates/steps/retain-run.yml
@@ -6,7 +6,8 @@ parameters:
6
steps:
7
- task: PowerShell@2
8
displayName: Retain pipeline run
9
- condition: ${{ parameters.Condition }}
+ env:
10
+ SYSTEM_ACCESSTOKEN: $(System.AccessToken)
11
inputs:
12
pwsh: true
13
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Add-RetentionLease.ps1
@@ -17,5 +18,5 @@ steps:
17
18
-RunId $(Build.BuildId)
19
-OwnerId Pipeline
20
-DaysValid ${{parameters.DaysValid}}
- -Base64EncodedAuthToken $(System.AccessToken)
21
+ -Base64EncodedAuthToken $env:SYSTEM_ACCESSTOKEN
22
-Debug
0 commit comments