question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running ReportGenerator global tool on Gitlab runner is broken - v 4.4.4

See original GitHub issue

I’m setting up a dotnetcore 3.1.1 codebase, and trying to incorporate the reportgenerator globaltool as part of the CI process. Screenshot 2020-01-20 at 4 05 06 PM

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:closed
  • Created 4 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
danielpalmecommented, Apr 24, 2020

I tried to reproduce this issue but it worked in my environment. I tried two setups:

  • Ubuntu with shell executor
  • Ubuntu with docker executor

I created the following setups:

Ubuntu with shell executor

  1. Installed Ubuntu 19.10 with latest updates
  2. Installed .NET Core SDK 3.1 (see https://docs.microsoft.com/de-de/dotnet/core/install/linux-package-manager-ubuntu-1910)
  3. Installed Gitlab Agent as a service (see https://docs.gitlab.com/runner/install/linux-manually.html)
  4. Registered Gitlab Agent as shell executor (see https://docs.gitlab.com/runner/register/index.html#gnulinux)

My .gitlab-ci.yml

stages:
  - build

build_job:
  stage: build
  script:
    - dotnet tool restore
    - dotnet reportgenerator -reports:OpenCover.xml -targetdir:out

Full content of my repository: shell.zip

Ubuntu with docker executor

  1. Installed Ubuntu 19.10 with latest updates
  2. Installed Docker (see https://docs.docker.com/engine/install/ubuntu/)
  3. Installed Gitlab Agent as a service (see https://docs.gitlab.com/runner/install/linux-manually.html)
  4. Registered Gitlab Agent as docker executor (see https://docs.gitlab.com/runner/register/index.html#gnulinux)

My .gitlab-ci.yml

image: mcr.microsoft.com/dotnet/core/sdk:3.1

stages:
  - build

build_job:
  stage: build
  script:
    - dotnet tool restore
    - dotnet reportgenerator -reports:OpenCover.xml -targetdir:out

Full content of my repository: docker.zip

1reaction
williammcainshcommented, Apr 9, 2020

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) )

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found