From 7ff36419f43c8c2c39e462974599e2429454342e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Sep 2023 09:11:47 -0700 Subject: [PATCH] Use dotnetbuilds SAS tokens for drop acquisition and continue on error (#5295) Co-authored-by: Justin Anderson --- eng/pipelines/stages/preparerelease.yml | 4 +++- eng/release/Scripts/AcquireBuild.ps1 | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/stages/preparerelease.yml b/eng/pipelines/stages/preparerelease.yml index 22f36b1eb7d..578d5f78c94 100644 --- a/eng/pipelines/stages/preparerelease.yml +++ b/eng/pipelines/stages/preparerelease.yml @@ -24,6 +24,7 @@ stages: - group: DotNet-Diagnostics-Storage - group: DotNet-DotNetStage-Storage - group: Release-Pipeline + - group: DotNetBuilds storage account read tokens steps: - task: UseDotNet@2 displayName: 'Use .NET 6' @@ -50,9 +51,10 @@ stages: -MaestroToken "$(MaestroAccessToken)" -GitHubToken "$(BotAccount-dotnet-bot-repo-PAT)" -DownloadTargetPath "$(System.ArtifactsDirectory)\BuildAssets" - -SasSuffixes "$(dotnetclichecksumsmsrc-dotnet-read-list-sas-token),$(dotnetclimsrc-read-sas-token)" + -SasSuffixes "$(dotnetbuilds-internal-checksums-container-read-token),$(dotnetbuilds-internal-container-read-token)" -ReleaseVersion "$(Build.BuildNumber)" workingDirectory: '$(Build.Repository.LocalPath)' + continueOnError: true - script: >- $(Build.SourcesDirectory)\dotnet.cmd run --project $(Build.Repository.LocalPath)\eng\release\DiagnosticsReleaseTool\DiagnosticsReleaseTool.csproj -c Release -- diff --git a/eng/release/Scripts/AcquireBuild.ps1 b/eng/release/Scripts/AcquireBuild.ps1 index ecab93729fb..0ab0e74c6f1 100644 --- a/eng/release/Scripts/AcquireBuild.ps1 +++ b/eng/release/Scripts/AcquireBuild.ps1 @@ -60,7 +60,8 @@ try { --bar-uri $MaestroApiEndPoint ` --password $MaestroToken ` --separated ` - --verbose + --verbose ` + --continue-on-error if ($LastExitCode -ne 0) { Write-Host "Error: unable to gather the assets from build $BarBuildId to $DownloadTargetPath using darc."