summaryrefslogtreecommitdiff
path: root/eng/build-job.yml
diff options
context:
space:
mode:
authorSven Boemer <sbomer@gmail.com>2019-02-08 08:34:54 -0800
committerGitHub <noreply@github.com>2019-02-08 08:34:54 -0800
commit5f36ff27b199da0dafe81cbfe07b16fb370b7442 (patch)
treeb2f6e94904333bef4fd76e88a7e6455a5c01342a /eng/build-job.yml
parent2bec440bdcec48bce974628bafa72ecfba3d9d0b (diff)
downloadcoreclr-5f36ff27b199da0dafe81cbfe07b16fb370b7442.tar.gz
coreclr-5f36ff27b199da0dafe81cbfe07b16fb370b7442.tar.bz2
coreclr-5f36ff27b199da0dafe81cbfe07b16fb370b7442.zip
Pass official build id to build (#22468)
This ensures that coreclr gets a version number based on the build id.
Diffstat (limited to 'eng/build-job.yml')
-rw-r--r--eng/build-job.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/eng/build-job.yml b/eng/build-job.yml
index 53982bdf6b..782f77c3ba 100644
--- a/eng/build-job.yml
+++ b/eng/build-job.yml
@@ -67,6 +67,11 @@ jobs:
value: true
- name: _BuildConfig
value: $(buildConfigUpper)
+ - name: officialBuildIdArg
+ value: ''
+ - ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
+ - name: officialBuildIdArg
+ value: '-officialbuildid=$(Build.BuildNumber)'
steps:
@@ -84,7 +89,7 @@ jobs:
# Build
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -skiptests -skipnuget $(clangArg) $(stripSymbolsArg)
+ - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -skiptests -skipnuget $(clangArg) $(stripSymbolsArg) $(officialBuildIdArg)
displayName: Build product
${{ if eq(parameters.osGroup, 'FreeBSD') }}:
env:
@@ -92,8 +97,8 @@ jobs:
# Once we are using Arcade, use DotNetCoreSdkDir instead, as we do below.
DotNetBootstrapCliTarPath: /dotnet-sdk-freebsd-x64.tar
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- # TODO: IBCOptimize? EnforcePGO? pass an OfficialBuildId? SignType? file logging parameters?
- - script: set __TestIntermediateDir=int&&build.cmd $(buildConfig) $(archType) -skiptests -skipbuildpackages
+ # TODO: IBCOptimize? EnforcePGO? file logging parameters?
+ - script: set __TestIntermediateDir=int&&build.cmd $(buildConfig) $(archType) -skiptests -skipbuildpackages $(officialBuildIdArg)
displayName: Build product
# Sign on Windows