Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Publish only on all configurations and only publish Json package (#42892
Browse files Browse the repository at this point in the history
)
  • Loading branch information
safern authored Mar 26, 2020
1 parent 57f547c commit 6ab8292
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 11 additions & 2 deletions eng/pipelines/corefx-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,19 @@ jobs:
helixToken: ''

- ${{ if eq(parameters.isOfficialBuild, 'true') }}:
- task: CopyFiles@2
displayName: Prepare artifacts packages folder to publish
inputs:
sourceFolder: $(Build.SourcesDirectory)/artifacts/packages
targetFolder: $(Build.ArtifactStagingDirectory)/artifacts/packages
contents: |
**/System.Net.Http.Json*.nupkg
condition: and(succeeded(), eq(variables['_publishPackages'], true))

- task: PublishBuildArtifacts@1
displayName: Publish packages to artifacts container
inputs:
pathToPublish: $(Build.SourcesDirectory)/artifacts/packages
pathToPublish: $(Build.ArtifactStagingDirectory)/artifacts/packages
artifactName: packages
artifactType: container
condition: and(succeeded(), ne(variables['_skipPublishPackages'], 'true'))
condition: and(succeeded(), eq(variables['_publishPackages'], 'true'))
5 changes: 1 addition & 4 deletions eng/pipelines/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,24 @@ stages:
_architecture: x86
_framework: netfx
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages

NETFX_x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: netfx
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages

UAP_x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: uap
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In UWP we don't produce packages

UAP_x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: uap
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In UWP we don't produce packages

arm64_Release:
_BuildConfig: Release
Expand Down Expand Up @@ -144,6 +140,7 @@ stages:
_architecture: x64
_framework: allConfigurations
_helixQueues: $(allConfigurationsQueues)
_publishPackages: true

pool:
${{ if ne(variables['System.TeamProject'], 'public') }}:
Expand Down

0 comments on commit 6ab8292

Please sign in to comment.