From e558eafaa1987a422a179426e76d150940681043 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 12 Apr 2021 23:03:01 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 1553 (#18002) * Remove condition. * Fix up system access token usage. Co-authored-by: Mitch Denny --- eng/common/pipelines/templates/steps/retain-run.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/retain-run.yml b/eng/common/pipelines/templates/steps/retain-run.yml index 0ba622dcff85..a514b90f2291 100644 --- a/eng/common/pipelines/templates/steps/retain-run.yml +++ b/eng/common/pipelines/templates/steps/retain-run.yml @@ -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 \ No newline at end of file