Tag the official VMR build with installer SHA (#15308)
This commit is contained in:
parent
40c923ffe9
commit
767cf4398a
5 changed files with 22 additions and 17 deletions
|
@ -19,11 +19,10 @@ stages:
|
|||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- template: templates/stages/vmr-scan.yml
|
||||
|
||||
# For rolling builds we want to build the MSFT SDK first so that we can
|
||||
# compare the contents with the source-built one later.
|
||||
# This only works because we don't run this test in PRs. If we decided
|
||||
# to run this test in PRs, we would need to build the MSFT SDK there too.
|
||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
# For rolling builds we want to build the MSFT SDK first so that we can
|
||||
# compare the contents with the source-built one later.
|
||||
# This only works because we don't run this test in PRs. If we decided
|
||||
# to run this test in PRs, we would need to build the MSFT SDK there too.
|
||||
- stage: Build_MSFT_SDK
|
||||
displayName: Build MSFT SDK
|
||||
jobs:
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
stages:
|
||||
- stage: VMR_Scan
|
||||
displayName: VMR Scan
|
||||
- stage: Tag_n_Scan
|
||||
displayName: Tag & Scan
|
||||
dependsOn: []
|
||||
variables:
|
||||
- template: /eng/common/templates/variables/pool-providers.yml
|
||||
jobs:
|
||||
- job: Scan
|
||||
displayName: VMR Scan
|
||||
- job: Tag_n_Scan
|
||||
displayName: Tag & Scan
|
||||
pool:
|
||||
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||
name: $(DncEngPublicBuildPool)
|
||||
|
@ -21,11 +21,17 @@ stages:
|
|||
- script: |
|
||||
source ./eng/common/tools.sh
|
||||
InitializeDotNetCli true
|
||||
dotnet='./.dotnet/dotnet'
|
||||
"$dotnet" tool restore
|
||||
./.dotnet/dotnet tool restore
|
||||
displayName: Initialize tooling
|
||||
workingDirectory: $(Build.SourcesDirectory)/src/installer
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
sha=`./.dotnet/dotnet darc vmr get-version --vmr "$(Build.SourcesDirectory)" installer`
|
||||
echo "##vso[build.addbuildtag]installer-$sha"
|
||||
displayName: Tag the build
|
||||
workingDirectory: $(Build.SourcesDirectory)/src/installer
|
||||
|
||||
- script: >
|
||||
./.dotnet/dotnet darc vmr scan-binary-files
|
||||
--vmr "$(Build.SourcesDirectory)"
|
||||
|
|
Reference in a new issue