diff --git a/.pipelines/azure-pipelines-template.yml b/.pipelines/azure-pipelines-template.yml index 709f952..f0683ea 100644 --- a/.pipelines/azure-pipelines-template.yml +++ b/.pipelines/azure-pipelines-template.yml @@ -75,24 +75,19 @@ jobs: # - script: 'reportgenerator -reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml -targetdir:$(Build.ArtifactStagingDirectory)/pkg/coverage-report -reporttypes:"Cobertura"' # displayName: 'Create reports' + - task: PublishCodeCoverageResults@1 + displayName: 'Publish code coverage report' + inputs: + codeCoverageTool: 'Cobertura' + summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml' + - task: CopyFiles@2 displayName: 'Copy coverage report' inputs: - sourceFolder: $(Agent.TempDirectory) + sourceFolder: $(Build.ArtifactStagingDirectory) Contents: '**\coverage.cobertura.xml' TargetFolder: $(Build.ArtifactStagingDirectory)/pkg/ - # - task: PublishTestResults@2 - # inputs: - # testResultsFormat: 'XUnit' - # testResultsFiles: '**/*.trx' - - - task: PublishCodeCoverageResults@1 - displayName: 'Publish code coverage report' - inputs: - codeCoverageTool: 'Cobertura' - summaryFileLocation: '$(Build.SourcesDirectory)/**/coverage.cobertura.xml' - # - ${{ if parameters.publishBuild }}: - task: PublishBuildArtifacts@1 displayName: 'Publish deployables'