Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipelines: PublishBuildArtifacts -> PublishPipelineArtifact #4367

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,5 @@ steps:
TargetFolder: '$(ob_outputDirectory)'

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(ob_outputDirectory)'
artifactName: '$(ob_artifactBaseName)'
- publish: $(ob_outputDirectory)
artifact: $(ob_artifactBaseName)
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,5 @@ steps:
TargetFolder: '$(ob_outputDirectory)\packages'

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(ob_outputDirectory)'
artifactName: '$(ob_artifactBaseName)'
- publish: $(ob_outputDirectory)
artifact: $(ob_artifactBaseName)
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,5 @@ steps:
TargetFolder: '$(ob_outputDirectory)'

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(ob_outputDirectory)'
artifactName: '$(ob_artifactBaseName)'
- publish: $(ob_outputDirectory)
artifact: $(ob_artifactBaseName)
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,8 @@ stages:
TargetFolder: '$(ob_outputDirectory)'

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(ob_outputDirectory)'
artifactName: '$(ob_artifactBaseName)'
- publish: $(ob_outputDirectory)
artifact: $(ob_artifactBaseName)

- ${{ if eq(parameters.PublishPackage, 'true') }}:
# this mysterious guid fixes the "NuGetCommand@2 is ambiguous" error :-(
Expand Down
12 changes: 4 additions & 8 deletions build/ProjectReunion-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ jobs:
SourceFolder: '$(build.SourcesDirectory)\packages'
TargetFolder: '$(build.SourcesDirectory)\BuildOutput\packages'

- task: PublishBuildArtifacts@1
- publish: $(build.SourcesDirectory)\BuildOutput
displayName: 'Publish artifact: Full Nuget'
inputs:
PathtoPublish: '$(build.SourcesDirectory)\BuildOutput'
artifactName: 'FoundationBinaries_$(buildConfiguration)_$(buildPlatform)'
artifact: 'FoundationBinaries_$(buildConfiguration)_$(buildPlatform)'

- job: BuildBinaries_release_anycpu
pool:
Expand All @@ -123,11 +121,9 @@ jobs:
filePath: 'BuildAll.ps1'
arguments: -AzureBuildStep "BuildAnyCPU"

- task: PublishBuildArtifacts@1
- publish: $(build.SourcesDirectory)\BuildOutput
displayName: 'Publish artifact: Full Nuget'
inputs:
PathtoPublish: '$(build.SourcesDirectory)\BuildOutput'
artifactName: 'FoundationBinaries_Release_AnyCPU'
artifact: 'FoundationBinaries_Release_AnyCPU'

- job: BuildMRT
pool:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ steps:
-AzurePipelineBuild

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
- publish: $(Build.SourcesDirectory)\PackLocation
displayName: 'Publish Windows App SDK Packages'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\PackLocation'
artifactName: 'WindowsAppSDKNugetPackage'
artifact: WindowsAppSDKNugetPackage

- ${{ if parameters.IsOneBranch }}:
- task: CopyFiles@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,9 @@ steps:
-AzurePipelineBuild

- ${{ if not( parameters.IsOneBranch ) }}:
- task: PublishBuildArtifacts@1
- publish: $(Build.SourcesDirectory)\PipelineTestOutput
displayName: 'Publish test results'
condition: succeededOrFailed()
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\PipelineTestOutput'
artifactName: 'TestResults-WindowsAppSDKIntegration'
artifact: TestResults-WindowsAppSDKIntegration

- ${{ if parameters.IsOneBranch }}:
- task: CopyFiles@2
Expand Down
Loading