File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
eng/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 11parameters :
22 Condition : failed()
3- TargetPath : $(Build.SourcesDirectory)/**/build/**/*.log
3+ SourceFolder : $(Build.SourcesDirectory)
4+ ContentExpression : /**/build/**/*.log
45 ArtifactName : BuildFailureLogs_$(Agent.JobName)_$(System.JobAttempt)
56
6- steps :
7+ steps :
8+ - task : CopyFiles@2
9+ condition : ${{ parameters.Condition }}
10+ displayName : Stage failure logs for upload
11+ inputs :
12+ SourceFolder : $(Build.SourcesDirectory)
13+ Contents : ' ${{ parameters.ContentExpression }}'
14+ TargetFolder : $(Build.ArtifactStagingDirectory)/failurelogs
15+
716 - task : PublishPipelineArtifact@1
817 condition : ${{ parameters.Condition }}
9- displayName : Publish Failure Logs
18+ displayName : Publish failure logs
1019 inputs :
11- targetPath : ${{ parameters.TargetPath }}
20+ targetPath : $(Build.ArtifactStagingDirectory)/failurelogs
1221 artifactName : ${{ parameters.ArtifactName }}
22+
23+ - task : DeleteFiles@1
24+ condition : ${{ parameters.Condition }}
25+ displayName : Delete failure logs staging folder
26+ inputs :
27+ SourceFolder : $(Build.ArtifactStagingDirectory)/failurelogs
28+ Contents : ' *'
29+ RemoveSourceFolder : true
You can’t perform that action at this time.
0 commit comments