diff --git a/eng/common/pipelines/templates/steps/run-pester-tests.yml b/eng/common/pipelines/templates/steps/run-pester-tests.yml index 6c1039ce343..67372bdb73b 100644 --- a/eng/common/pipelines/templates/steps/run-pester-tests.yml +++ b/eng/common/pipelines/templates/steps/run-pester-tests.yml @@ -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 }} \ No newline at end of file + pathToSources: $(Build.SourcesDirectory)/${{ parameters.TargetDirectory }}