...
1parameters:
2 - name: DaysValid
3 default: 731
4 type: number
5
6steps:
7 - task: PowerShell@2
8 displayName: Retain pipeline run
9 env:
10 SYSTEM_ACCESSTOKEN: $(System.AccessToken)
11 inputs:
12 pwsh: true
13 filePath: $(Build.SourcesDirectory)/eng/common/scripts/Add-RetentionLease.ps1
14 arguments: >
15 -Organization azure-sdk
16 -Project $(System.TeamProject)
17 -DefinitionId $(System.DefinitionId)
18 -RunId $(Build.BuildId)
19 -DaysValid ${{ parameters.DaysValid }}
20 -AccessToken $env:SYSTEM_ACCESSTOKEN
21 -Debug
View as plain text