diff --git a/eng/PrepareRelease.yml b/eng/PrepareRelease.yml index 75b20cdb122..b26c0e6b5c4 100644 --- a/eng/PrepareRelease.yml +++ b/eng/PrepareRelease.yml @@ -19,8 +19,6 @@ stages: - group: DotNet-Diagnostics-Storage - group: DotNet-DotNetStage-Storage - group: Release-Pipeline - - name: BARBuildId - value: $[ stageDependencies.publish_using_darc.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] steps: - task: UseDotNet@2 displayName: 'Use .NET Core runtime 3.1.x' @@ -28,6 +26,12 @@ stages: packageType: runtime version: 3.1.x installationPath: '$(Build.Repository.LocalPath)\.dotnet' + - task: UseDotNet@2 + displayName: 'Use .NET Core runtime 6.x' + inputs: + packageType: runtime + version: 6.x + installationPath: '$(Build.Repository.LocalPath)\.dotnet' - ${{ if not(and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/test/release/')))) }}: - script: '$(Build.SourcesDirectory)\dotnet.cmd build $(Build.Repository.LocalPath)\eng\release\DiagnosticsReleaseTool\DiagnosticsReleaseTool.csproj -c Release /bl' workingDirectory: '$(System.ArtifactsDirectory)\' @@ -38,13 +42,14 @@ stages: publishLocation: 'pipeline' artifact: 'DiagnosticsReleaseToolBin' - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/test/release/'))) }}: + - template: /eng/common/templates/post-build/setup-maestro-vars.yml - task: PowerShell@2 displayName: 'DARC Gather build' inputs: targetType: filePath filePath: '$(Build.Repository.LocalPath)/eng/release/Scripts/AcquireBuild.ps1' arguments: >- - -BarBuildId "$(BARBuildId)" + -BarBuildId "$(BARBuildId)" -AzdoToken "$(dn-bot-dotnet-all-scopes)" -MaestroToken "$(MaestroAccessToken)" -GitHubToken "$(BotAccount-dotnet-bot-repo-PAT)"