From de8f01243e7e80bbe1235830a58375cc7aa65b57 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Fri, 27 Mar 2020 10:51:38 -0700 Subject: [PATCH] Adding step to upload output directory. Also some cleanup --- .../coreclr/templates/build-corelib-job.yml | 27 ++++++++++------------ .../coreclr/templates/xplat-pipeline-job.yml | 3 +++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/eng/pipelines/coreclr/templates/build-corelib-job.yml b/eng/pipelines/coreclr/templates/build-corelib-job.yml index 0ec3c2f..dedd402 100644 --- a/eng/pipelines/coreclr/templates/build-corelib-job.yml +++ b/eng/pipelines/coreclr/templates/build-corelib-job.yml @@ -58,26 +58,11 @@ jobs: value: '' - name: publishLogsArtifactPrefix value: 'BuildLogs_CoreLib' - - ${{ if and(ne(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}: - # Variables used to publish packages to blob feed - - name: dotnetfeedUrl - value: https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json - - name: dotnetfeedPAT - value: $(dotnetfeed-storage-access-key-1) - # Variables used by arcade to gather asset manifests - - name: _DotNetPublishToBlobFeed - value: true - name: officialBuildIdArg value: '' - ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}: - name: officialBuildIdArg value: '/p:OfficialBuildId=$(Build.BuildNumber)' - - name: enforcePgoArg - value: '' - # The EnforcePGO script is only supported on Windows and is not supported on arm or arm64. - - ${{ if and(eq(parameters.buildConfig, 'Release'), and(eq(parameters.osGroup, 'Windows_NT'), not(or(eq(parameters.archType, 'arm64'), eq(parameters.archType, 'arm'))))) }}: - - name: enforcePgoArg - value: '-enforcepgo' - ${{ parameters.variables }} @@ -108,6 +93,18 @@ jobs: - script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -subsetCategory coreclr -subset corelib $(crossArg) -arch $(archType) -c $(buildConfig) $(officialBuildIdArg) -ci displayName: Build System.Private.CoreLib only + + # Publish corelib output directory for consumption by libraries. + - template: /eng/pipelines/common/upload-artifact-step.yml + parameters: + rootFolder: $(buildProductRootFolderPath) + includeRootFolder: false + archiveType: $(archiveType) + tarCompression: $(tarCompression) + archiveExtension: $(archiveExtension) + artifactName: $(corelibProductArtifactName) + displayName: 'corelib build' + # Save packages using the prepare-signed-artifacts format. - ${{ if eq(parameters.isOfficialBuild, true) }}: - template: /eng/pipelines/common/upload-unsigned-artifacts-step.yml diff --git a/eng/pipelines/coreclr/templates/xplat-pipeline-job.yml b/eng/pipelines/coreclr/templates/xplat-pipeline-job.yml index ae418ed..aad6f7b 100644 --- a/eng/pipelines/coreclr/templates/xplat-pipeline-job.yml +++ b/eng/pipelines/coreclr/templates/xplat-pipeline-job.yml @@ -75,6 +75,9 @@ jobs: - name: buildProductRootFolderPath value: '$(Build.SourcesDirectory)/artifacts/bin/coreclr/$(osGroup).$(archType).$(buildConfigUpper)' + - name: corelibProductArtifactName + value: 'CoreLib_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)' + - name: managedTestArtifactName value: 'CoreCLRManagedTestArtifacts_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_$(archType)_$(buildConfig)' -- 2.7.4