2019-11-14 23:21:53 +00:00
|
|
|
parameters:
|
|
|
|
StageLabel: ''
|
|
|
|
JobLabel: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: Powershell@2
|
|
|
|
displayName: Prepare Binlogs to Upload
|
|
|
|
inputs:
|
|
|
|
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}}/
|
|
|
|
continueOnError: true
|
|
|
|
condition: always()
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Logs
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(Build.SourcesDirectory)/PostBuildLogs'
|
|
|
|
PublishLocation: Container
|
2019-12-17 13:31:15 +00:00
|
|
|
ArtifactName: PostBuildLogs
|
2019-11-14 23:21:53 +00:00
|
|
|
continueOnError: true
|
|
|
|
condition: always()
|