Running ReportGenerator global tool on Gitlab runner is broken - v 4.4.4
See original GitHub issueI’m setting up a dotnetcore 3.1.1 codebase, and trying to incorporate the reportgenerator globaltool as part of the CI process.

But, even though the same shell script works on my local (mac os catalina), the command fails on CI. The command that I am running is:
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./TestResults/Coverage/ && ./tools/reportgenerator '-reports:./api.test/TestResults/Coverage/coverage.cobertura.xml' '-targetdir:./api.test/TestResults/Coverage/Reports' -reportTypes:Html
(This is the content of the test.sh shell script)
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Troubleshooting GitLab Runner
Confirm your GitLab and GitLab Runner versions GitLab aims to guarantee backward compatibility. However, as a first troubleshooting step, you should ensure ...
Read more >GitLab Runner stopping after `dotnet restore` or `dotnet test`
As a first test, try using a folder without space in its name. – Fredrik C · The folder does not have any...
Read more >Untitled
Dotnet reportgenerator global tool Web30 thg 3, 2023 · In the next two ... Running ReportGenerator global tool on Gitlab runner is broken...
Read more >dotnet-reportgenerator-globaltool does not support .NET ...
You have several options here: Install ReportGenerator as a global tool: dotnet tool install -g dotnet-reportgenerator-globaltool.
Read more >dotnet-reportgenerator-globaltool 4.4.0
Version Downloads Last updated
5.1.21 166,966 7 days ago
5.1.20 481,712 a month ago
5.1.19 1,260,749 3 months ago
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I tried to reproduce this issue but it worked in my environment. I tried two setups:
shellexecutordockerexecutorI created the following setups:
Ubuntu with
shellexecutorshellexecutor (see https://docs.gitlab.com/runner/register/index.html#gnulinux)My
.gitlab-ci.ymlFull content of my repository: shell.zip
Ubuntu with
dockerexecutordockerexecutor (see https://docs.gitlab.com/runner/register/index.html#gnulinux)My
.gitlab-ci.ymlFull content of my repository: docker.zip
I don’t have direct access to the vm’s, Is this any use? Linux version 3.10.0-1062.18.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) )