From 8690516c21f68e2b540e786d996fac1e28025b72 Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Fri, 20 Dec 2019 13:41:09 -0600 Subject: [PATCH] Publish CoreCLR packages (#1090) Add missing _BuildConfig. Pass configuration with Arcade style, at the end for win arg parsing. Fix build-packages.sh binlog location. Remove CoreCLR nupkg output redirection. --- eng/pipelines/coreclr/templates/build-job.yml | 11 ++++++++++- eng/pipelines/runtime-official.yml | 2 ++ src/coreclr/build-packages.sh | 2 +- src/coreclr/src/.nuget/Directory.Build.targets | 6 ------ src/coreclr/src/.nuget/packaging.props | 3 --- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/eng/pipelines/coreclr/templates/build-job.yml b/eng/pipelines/coreclr/templates/build-job.yml index 537d2e363cd293..8c5f2e2b8a33f9 100644 --- a/eng/pipelines/coreclr/templates/build-job.yml +++ b/eng/pipelines/coreclr/templates/build-job.yml @@ -3,6 +3,7 @@ parameters: archType: '' osGroup: '' osSubgroup: '' + platform: '' container: '' testGroup: '' crossrootfsDir: '' @@ -12,12 +13,14 @@ parameters: stagedBuild: false variables: {} pool: '' + isOfficialBuild: false ### Product build jobs: - template: xplat-pipeline-job.yml parameters: buildConfig: ${{ parameters.buildConfig }} + _BuildConfig: ${{ parameters.buildConfig }} archType: ${{ parameters.archType }} osGroup: ${{ parameters.osGroup }} osSubgroup: ${{ parameters.osSubgroup }} @@ -186,9 +189,15 @@ jobs: SecretsFilter: 'dotnetfeed-storage-access-key-1,microsoft-symbol-server-pat,symweb-symbol-server-pat' # Build packages - - script: $(coreClrRepoRootDir)build-packages$(scriptExt) -BuildArch=$(archType) -BuildType=$(_BuildConfig) $(crossPackagesArg) $(officialBuildIdArg) -ci + - script: $(coreClrRepoRootDir)build-packages$(scriptExt) -BuildArch=$(archType) -BuildType=$(_BuildConfig) $(crossPackagesArg) $(officialBuildIdArg) -ci --configuration $(_BuildConfig) displayName: Build packages + # Save packages using the prepare-signed-artifacts format. + - ${{ if eq(parameters.isOfficialBuild, true) }}: + - template: /eng/pipelines/common/upload-unsigned-artifacts-step.yml + parameters: + name: ${{ parameters.platform }} + # Publish official build - ${{ if eq(parameters.publishToBlobFeed, 'true') }}: - ${{ if ne(parameters.osGroup, 'Windows_NT') }}: diff --git a/eng/pipelines/runtime-official.yml b/eng/pipelines/runtime-official.yml index d1310fdc746fc6..d3642f3fad3374 100644 --- a/eng/pipelines/runtime-official.yml +++ b/eng/pipelines/runtime-official.yml @@ -57,6 +57,8 @@ stages: - Windows_NT_x64 - Windows_NT_arm - Windows_NT_arm64 + jobParameters: + isOfficialBuild: ${{ variables.isOfficialBuild }} # # Build libraries using live CoreLib from CoreCLR diff --git a/src/coreclr/build-packages.sh b/src/coreclr/build-packages.sh index 6a7993487e4511..a0c7b1fce00e30 100755 --- a/src/coreclr/build-packages.sh +++ b/src/coreclr/build-packages.sh @@ -127,7 +127,7 @@ if [ "${__DistroRid}" = "linux-musl-arm64" ]; then export OutputRID=${__DistroRid} fi -logFile=$__ProjectRoot/artifacts/log/build-packages.binlog +logFile=$__RepoRootDir/artifacts/log/build-packages.binlog $__RepoRootDir/eng/common/build.sh -r -b -projects $__ProjectRoot/src/.nuget/packages.builds \ -verbosity minimal -bl:$logFile \ /p:__BuildOS=$__BuildOS \ diff --git a/src/coreclr/src/.nuget/Directory.Build.targets b/src/coreclr/src/.nuget/Directory.Build.targets index 57581f9074bffe..a20c6f20e2b9ec 100644 --- a/src/coreclr/src/.nuget/Directory.Build.targets +++ b/src/coreclr/src/.nuget/Directory.Build.targets @@ -3,12 +3,6 @@ - - - $(PackagesBinDir)/pkg/ - - - $(PackagesBinDir)/pkg/ - $(PackagesBinDir)/symbolpkg/ $(MSBuildThisFileDirectory)/packageIndex.json