Upload logs and artifacts for non-1ES VMR builds (#19224)
This commit is contained in:
parent
afab34fd84
commit
279a8df389
1 changed files with 14 additions and 0 deletions
|
@ -424,6 +424,13 @@ jobs:
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
|
|
||||||
|
- ${{ if or(ne(variables['System.TeamProject'], 'internal'), eq(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
|
- publish: $(Build.StagingDirectory)/BuildLogs
|
||||||
|
artifact: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt)
|
||||||
|
displayName: Publish BuildLogs
|
||||||
|
continueOnError: true
|
||||||
|
condition: always()
|
||||||
|
|
||||||
# Only upload test results if enabled
|
# Only upload test results if enabled
|
||||||
- ${{ if eq(parameters.runTests, 'True') }}:
|
- ${{ if eq(parameters.runTests, 'True') }}:
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
@ -454,3 +461,10 @@ jobs:
|
||||||
SourceFolder: $(sourcesPath)/artifacts/packages
|
SourceFolder: $(sourcesPath)/artifacts/packages
|
||||||
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing/packages
|
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing/packages
|
||||||
displayName: Copy packages to Artifact Staging Directory
|
displayName: Copy packages to Artifact Staging Directory
|
||||||
|
|
||||||
|
- ${{ if or(ne(variables['System.TeamProject'], 'internal'), eq(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
|
- publish: $(Build.ArtifactStagingDirectory)/publishing
|
||||||
|
artifact: $(Agent.JobName)_Artifacts
|
||||||
|
displayName: Publish Artifacts
|
||||||
|
condition: succeededOrFailed()
|
||||||
|
continueOnError: true
|
||||||
|
|
Loading…
Reference in a new issue