danielpalme/ReportGenerator

Report generated is always at version 5.1.14.0 on AzureDevops

vanwx opened this issue · 1 comments

Describe the bug
I tried to use latest version 5.2.3 but the generated report on azure devops always is at 5.1.14.0

To Reproduce
The following input helps to reproduce your issue:

  1. Install ReportGenerator from Marketplace https://reportgenerator.io/usage
  2. Follow the instruction and add the task
          - task: reportgenerator@5
            displayName: coverage report generator
            inputs:
              reports: $(workingDirectory)/$(testResultsDir)/coverage.cobertura.xml
              targetdir: $(workingDirectory)/$(testResultsDir)/cobertura
              reporttypes: HtmlInline_AzurePipelines
  1. Observed the task is called with latest version 5.2.3
18T08:53:21.6170593Z Task         : ReportGenerator
2024-03-18T08:53:21.6170637Z Description  : ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, or lcov into human readable reports in various formats.
2024-03-18T08:53:21.6170757Z Version      : 5.2.3
2024-03-18T08:53:21.6170801Z Author       : Palmmedia
2024-03-18T08:53:21.6170846Z Help         : [More Information](https://github.com/danielpalme/ReportGenerator)
2024-03-18T08:53:21.6170920Z ==============================================================================
2024-03-18T08:53:21.7112055Z [command]/opt/hostedtoolcache/dotnet/dotnet /agent/_work/_tasks/reportgenerator_be803a55-9253-4895-a525-be570d86f161/5.2.3/tools/net6.0/ReportGenerator.dll -reports:/agent/_work/1/s/TestResults/coverage.cobertura.xml -targetdir:/agent/_work/1/s/TestResults/cobertura -reporttypes:HtmlInline_AzurePipelines -sourcedirs: -historydir: -plugins: -assemblyfilters:+* -classfilters:+* -filefilters:+* -verbosity:Info -title: -tag:1.0.1+12345678dc_#932105 -license:
2024-03-18T08:53:22.2357529Z 2024-03-18T08:53:22: Writing report file '/agent/_work/1/s/TestResults/cobertura/index.html'
2024-03-18T08:53:22.2708142Z 2024-03-18T08:53:22: Report generation took 0.4 seconds
2024-03-18T08:53:22.2789900Z ##[section]Finishing: Test Report Generator
  1. The generated report is still with old version 5.1.14.0
    image

I also tried with dotnet global tool and still get the same issue on Azure Devops.
Running cmd on my Windows machine work fine with correct version.

I came accross this issue #646

Turn out it's Azure Devops publishing coverage task that regenrate the report.