From 195ce002941f636f3ab81ddff15e1a61c0c860df Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Mon, 22 Jul 2019 14:48:39 +1000 Subject: [PATCH] Adding coverage output to build output --- .azure-pipelines/test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/test.yml b/.azure-pipelines/test.yml index bd7b6cb..a6896b6 100755 --- a/.azure-pipelines/test.yml +++ b/.azure-pipelines/test.yml @@ -27,4 +27,16 @@ steps: inputs: codeCoverageTool: 'cobertura' summaryFileLocation: coverage/cobertura-coverage.xml - condition: succeededOrFailed() \ No newline at end of file + condition: succeededOrFailed() + + - task: CopyFiles@2 + inputs: + sourceFolder: '$(Build.SourcesDirectory)/coverage' + targetFolder: $(Build.ArtifactStagingDirectory) + displayName: 'Copy coverage output' + + - task: PublishPipelineArtifact@0 + displayName: 'Publish Coverage Artifact' + inputs: + targetPath: $(Build.ArtifactStagingDirectory) + artifactName: coverage