Copy artifacts to publishing directory (#20003)

This commit is contained in:
Matt Thalman 2024-07-15 13:47:08 -05:00 committed by GitHub
parent 8d70937de5
commit 5d81c4c47a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ jobs:
- output: pipelineArtifact
displayName: 'Publish Artifacts'
condition: succeededOrFailed()
targetPath: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/'
targetPath: $(Build.ArtifactStagingDirectory)/publishing
artifactName: $(Agent.JobName)_Artifacts
steps:
@ -267,6 +267,13 @@ jobs:
continueOnError: true
condition: succeededOrFailed()
- task: CopyFiles@2
inputs:
SourceFolder: ${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing
displayName: Copy artifacts to Artifact Staging Directory
condition: succeededOrFailed()
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- publish: '$(Build.StagingDirectory)/BuildLogs'
artifact: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt)
@ -274,7 +281,7 @@ jobs:
continueOnError: true
condition: succeededOrFailed()
- publish: '${{ variables.sourcesPath }}/artifacts/${{ parameters.architecture }}/Release/'
- publish: $(Build.ArtifactStagingDirectory)/publishing
artifact: $(Agent.JobName)_Artifacts
displayName: Publish Artifacts
condition: succeededOrFailed()