Skip to content

Commit

Permalink
Update PublishCodeCoverageResults task to v2 (#23437)
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Haggard <[email protected]>
  • Loading branch information
azure-sdk and weshaggard authored Sep 13, 2024
1 parent bd891cb commit 3eb3276
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eng/common/pipelines/templates/steps/run-pester-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ steps:
testResultsFiles: $(Build.SourcesDirectory)/${{ parameters.TargetDirectory }}/testResults.xml
testRunTitle: $(System.StageName)_$(Agent.JobName)_Tests

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
displayName: Publish Code Coverage to Azure DevOps
condition: succeededOrFailed()
inputs:
codeCoverageTool: JaCoCo
summaryFileLocation: $(Build.SourcesDirectory)/${{ parameters.TargetDirectory }}/coverage.xml
pathToSources: $(Build.SourcesDirectory)/${{ parameters.TargetDirectory }}
pathToSources: $(Build.SourcesDirectory)/${{ parameters.TargetDirectory }}

0 comments on commit 3eb3276

Please sign in to comment.