2019-11-14 23:21:53 +00:00
|
|
|
parameters:
|
|
|
|
StageLabel: ''
|
|
|
|
JobLabel: ''
|
|
|
|
|
|
|
|
steps:
|
2020-08-31 20:55:40 +00:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: Copy Logs to $(Build.StagingDirectory)\BuildLogs
|
2019-11-14 23:21:53 +00:00
|
|
|
inputs:
|
2020-08-31 20:55:40 +00:00
|
|
|
SourceFolder: $(Build.SourcesDirectory)\artifacts
|
|
|
|
Contents: |
|
|
|
|
**/*.log
|
|
|
|
**/*.binlog
|
|
|
|
TargetFolder: '$(Build.StagingDirectory)\BuildLogs'
|
2019-11-14 23:21:53 +00:00
|
|
|
continueOnError: true
|
2020-08-31 20:55:40 +00:00
|
|
|
condition: succeededOrFailed()
|
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
displayName: Publish BuildLogs
|
2019-11-14 23:21:53 +00:00
|
|
|
inputs:
|
2020-08-31 20:55:40 +00:00
|
|
|
targetPath: '$(Build.StagingDirectory)\BuildLogs'
|
|
|
|
artifactName: ${{ parameters.JobLabel }}
|
|
|
|
condition: succeededOrFailed()
|