Skip to content

Commit

Permalink
Merge pull request #2995 from hoyosjs/juhoyosa/fix-release-vars
Browse files Browse the repository at this point in the history
Set the build ID using arcade's scripts instead of retrieving it from another job (#2993)
  • Loading branch information
hoyosjs authored Apr 8, 2022
2 parents 8229e4b + a718906 commit c1d7935
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eng/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
- script: '$(Build.Repository.LocalPath)\dotnet.cmd build $(Build.Repository.LocalPath)\eng\release\DiagnosticsReleaseTool\DiagnosticsReleaseTool.csproj -c Release /bl'
Expand All @@ -33,11 +31,12 @@ stages:
artifact: 'DiagnosticsReleaseToolBin'
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
- task: UseDotNet@2
displayName: 'Use .NET Core runtime 3.1.x'
displayName: 'Use .NET Core runtime 6.x'
inputs:
packageType: runtime
version: 3.1.x
version: 6.x
installationPath: '$(Build.Repository.LocalPath)\.dotnet'
- template: /eng/common/templates/post-build/setup-maestro-vars.yml
- task: PowerShell@2
displayName: 'DARC Gather build'
inputs:
Expand Down

0 comments on commit c1d7935

Please sign in to comment.