azure-sdk-for-cpp/eng/common/testproxy/publish-proxy-logs.yml
Azure SDK Bot a3e9ad1d2c
Sync eng/common directory with azure-sdk-tools for PR 5224 (#4274)
* feature/upload-proxy-artifact

* update template to ensure that having the file in use on windows doesn't break the build

* incoming PR fixes where test-proxy stores its log. as as result, we also need to update the location of where we read out the test-proxy log

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2023-01-26 16:47:47 -08:00

17 lines
538 B
YAML

parameters:
rootFolder: '$(Build.SourcesDirectory)'
steps:
- pwsh: |
Copy-Item -Path "${{ parameters.rootFolder }}/test-proxy.log" -Destination "${{ parameters.rootFolder }}/proxy.log"
displayName: Copy Log File
- template: ../pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactName: "$(System.JobName)-proxy-logs"
ArtifactPath: "${{ parameters.rootFolder }}/proxy.log"
- pwsh: |
Remove-Item -Force ${{ parameters.rootFolder }}/proxy.log
displayName: Cleanup Copied Log File