Jetbrains.dotcover.globaltool is not found

Hi everyone,

So i have had a couple of pipelines for a while now on GitLab. I think for over a year now

Then all of a sudden I am getting errors

Please see screenshot below and I will attach the code snippet as well

this is the log below of the error

$ export PATH="$PATH:/root/.dotnet/tools"
$ dotnet tool install --global dotnet-sonarscanner
You can invoke the tool using the following command: dotnet-sonarscanner
Tool 'dotnet-sonarscanner' (version '10.1.2') was successfully installed.
$ dotnet tool install --global JetBrains.dotCover.GlobalTool
jetbrains.dotcover.globaltool is not found in NuGet feeds https://api.nuget.org/v3/index.json".
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1

Also, see below the gitlab-ci code snippet

- dotnet tool install --global dotnet-sonarscanner
    # - dotnet tool install --global JetBrains.dotCover.GlobalTool

    - dotnet sonarscanner begin /k:"$SONAR_PROJECT_KEY" /o:"$SONAR_ORG" /d:sonar.login="$SONAR_TOKEN"
      /d:sonar.qualitygate.wait=true /d:sonar.gitlab.max_major_issues_gate=0
      /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
      /d:sonar.coverage.exclusions="**/Contracts/**,**/Program.cs,**/DependencyInjection.cs,**/Enums/**,"
      /d:sonar.cpd.exclusions="**/Contracts/**,**/Program.cs,**/Enums/**,**/DependencyInjection.cs"
    - dotnet build MyProjectSolutionFile.sln
    # - dotnet dotcover test MyProjectSolutionFile.sln --no-build --filter Test=Unit --dcReportType=HTML
    - dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"

The commented line are so, as a stop due to the issue

Many thanks in advance for any help

Hi,

Does that mean that the current state of the pipeline, with dotnet-sonarscanner is working? Because JetBrains.dotCover.GlobalTool is not from us. We don’t offer it. We don’t host it. We don’t maintain it. For that, you’d need to talk to JetBrains.

 
Ann

JetBrains.dotCover.GlobalTool is unmaintained and has been removed. You should use JetBrains.dotCover.CommandLineTools instead

Source: https://youtrack.jetbrains.com/issue/DCVR-12422/JetBrains.dotCover.GlobalTool-2023.3.x-unavailable-on-nuget.org

Could SonarSource update their documentation at .NET test coverage | SonarQube Server Documentation ? Thanks.

The docs have been updated, thank you for taking the time to report this!