Skip to content

Commit

Permalink
Copy artifacts to publishing directory (#20005)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Jul 15, 2024
1 parent 0271f41 commit 37cd9d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,14 @@ jobs:
publishRunAttachments: true
testRunTitle: SourceBuild_SmokeTests_$(Agent.JobName)

- publish: '$(tarballDir)/artifacts/${{ parameters.architecture}}/Release/'
- task: CopyFiles@2
inputs:
SourceFolder: $(tarballDir)/artifacts/${{ parameters.architecture}}/Release/
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing
displayName: Copy artifacts to Artifact Staging Directory
condition: succeededOrFailed()

- publish: $(Build.ArtifactStagingDirectory)/publishing
artifact: $(Agent.JobName)_Artifacts
displayName: Publish Artifacts
condition: succeededOrFailed()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,17 @@ jobs:
publishRunAttachments: true
testRunTitle: SourceBuild_SmokeTests_$(Agent.JobName)

- task: CopyFiles@2
inputs:
SourceFolder: $(tarballDir)/artifacts/${{ parameters.architecture}}/Release/
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing
displayName: Copy artifacts to Artifact Staging Directory
condition: succeededOrFailed()

- task: 1ES.PublishPipelineArtifact@1
displayName: Publish Artifacts
inputs:
targetPath: $(tarballDir)/artifacts/${{ parameters.architecture}}/Release/
targetPath: $(Build.ArtifactStagingDirectory)/publishing
artifactName: $(Agent.JobName)_Artifacts
continueOnError: true
condition: succeededOrFailed()

0 comments on commit 37cd9d4

Please sign in to comment.