2019-11-14 23:21:53 +00:00
|
|
|
parameters:
|
|
|
|
StageLabel: ''
|
|
|
|
JobLabel: ''
|
|
|
|
|
|
|
|
steps:
|
2020-09-04 15:32:57 +00:00
|
|
|
- task: Powershell@2
|
|
|
|
displayName: Prepare Binlogs to Upload
|
2019-11-14 23:21:53 +00:00
|
|
|
inputs:
|
2020-09-04 15:32:57 +00:00
|
|
|
targetType: inline
|
|
|
|
script: |
|
|
|
|
New-Item -ItemType Directory $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/
|
|
|
|
Move-Item -Path $(Build.SourcesDirectory)/artifacts/log/Debug/* $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/
|
2019-11-14 23:21:53 +00:00
|
|
|
continueOnError: true
|
2020-09-04 15:32:57 +00:00
|
|
|
condition: always()
|
2020-09-01 13:00:44 +00:00
|
|
|
|
2020-09-04 15:32:57 +00:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Logs
|
2019-11-14 23:21:53 +00:00
|
|
|
inputs:
|
2020-09-04 15:32:57 +00:00
|
|
|
PathtoPublish: '$(Build.SourcesDirectory)/PostBuildLogs'
|
|
|
|
PublishLocation: Container
|
|
|
|
ArtifactName: PostBuildLogs
|
|
|
|
continueOnError: true
|
|
|
|
condition: always()
|