summaryrefslogtreecommitdiff
path: root/eng
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2019-03-04 15:22:56 -0800
committerGitHub <noreply@github.com>2019-03-04 15:22:56 -0800
commit857567c1b7f35986bc72d7d417e8db64f4df9f72 (patch)
tree8beb88758fc26f2e8a405260a873dd3b4e63a8e7 /eng
parentd17b66c8bbc21fc8be18d901e691ed7e9bc8d7ce (diff)
downloadcoreclr-857567c1b7f35986bc72d7d417e8db64f4df9f72.tar.gz
coreclr-857567c1b7f35986bc72d7d417e8db64f4df9f72.tar.bz2
coreclr-857567c1b7f35986bc72d7d417e8db64f4df9f72.zip
Publish logs as pipeline artifacts for build-job.yml and test-job.yml (#22926)
Diffstat (limited to 'eng')
-rw-r--r--eng/build-job.yml8
-rw-r--r--eng/test-job.yml9
2 files changed, 17 insertions, 0 deletions
diff --git a/eng/build-job.yml b/eng/build-job.yml
index 8e10ce8a9b..7e9f631c01 100644
--- a/eng/build-job.yml
+++ b/eng/build-job.yml
@@ -187,6 +187,14 @@ jobs:
artifactName: ${{ format('build_{0}_{1}_{2}_nuget', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
targetPath: $(Build.SourcesDirectory)/bin/Product/$(osGroup).$(archType).$(buildConfigUpper)/.nuget/pkg
+ # Publish Logs
+ - task: PublishPipelineArtifact@0
+ displayName: Publish Logs
+ inputs:
+ artifactName: ${{ format('build_{0}_{1}_{2}_Logs', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
+ targetPath: $(Build.SourcesDirectory)/bin/Logs
+ continueOnError: true
+ condition: always()
# Kill tasks that hold onto files on Windows. Otherwise git clean
# may fail for later jobs on the same agent.
diff --git a/eng/test-job.yml b/eng/test-job.yml
index d766c228e2..5b8538511c 100644
--- a/eng/test-job.yml
+++ b/eng/test-job.yml
@@ -195,3 +195,12 @@ jobs:
- jitstress1_tiered
- jitstress2
- jitstress2_tiered
+
+ # Publish Logs
+ - task: PublishPipelineArtifact@0
+ displayName: Publish Logs
+ inputs:
+ artifactName: ${{ format('testbuild_{0}_{1}_{2}_Logs', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
+ targetPath: $(Build.SourcesDirectory)/bin/Logs
+ continueOnError: true
+ condition: always()