diff --git a/eng/pipelines/githubio-linkcheck.yml b/eng/pipelines/githubio-linkcheck.yml index a19d4aaca24..08303ed0a9b 100644 --- a/eng/pipelines/githubio-linkcheck.yml +++ b/eng/pipelines/githubio-linkcheck.yml @@ -91,7 +91,7 @@ jobs: -inputCacheFile "$(cachefile)" -outputCacheFile "$(cachefile)" -devOpsLogging: $true - + - task: PowerShell@2 displayName: 'tools link check' condition: succeededOrFailed() @@ -111,7 +111,14 @@ jobs: condition: succeededOrFailed() displayName: Upload verified links - - pwsh: | - azcopy copy '$(cachefile)' 'https://azuresdkartifacts.blob.core.windows.net/verify-links-cache$(azuresdkartifacts-verify-links-cache-sas)' - condition: succeededOrFailed() - displayName: Upload cache file to blob container + - task: AzurePowerShell@5 + displayName: 'Upload cache file to blob container' + inputs: + azureSubscription: 'Azure SDK Artifacts' + ScriptType: 'InlineScript' + azurePowerShellVersion: LatestVersion + pwsh: true + Inline: | + azcopy copy '$(cachefile)' 'https://azuresdkartifacts.blob.core.windows.net/verify-links-cache' + env: + AZCOPY_AUTO_LOGIN_TYPE: 'PSCRED'