From 857567c1b7f35986bc72d7d417e8db64f4df9f72 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Mon, 4 Mar 2019 15:22:56 -0800 Subject: Publish logs as pipeline artifacts for build-job.yml and test-job.yml (#22926) --- eng/build-job.yml | 8 ++++++++ eng/test-job.yml | 9 +++++++++ 2 files changed, 17 insertions(+) (limited to 'eng') 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() -- cgit v1.2.3