Hello,
- SonarQube 9.8
- deployed from zip
Pipeline crashes with an error Job failed: exit code 1
and null result.
+--------+------+--------+--------+
| Module | Line | Branch | Method |
+--------+------+--------+--------+
+---------+------+--------+--------+
| | Line | Branch | Method |
+---------+------+--------+--------+
| Total | 0% | 0% | 0% |
+---------+------+--------+--------+
| Average | 0% | 0% | 0% |
+---------+------+--------+--------+
My pipeline job is:
sonarqube:
stage: sonarqube
image: mcr.microsoft.com/dotnet/sdk:6.0
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
GIT_DEPTH: "0"
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- "apt-get update"
- "apt-get install --yes openjdk-11-jre"
- "dotnet tool install --global coverlet.console"
- "dotnet tool install --global dotnet-sonarscanner"
- "export PATH=\"$PATH:$HOME/.dotnet/tools\""
- "dotnet sonarscanner begin -k:\"$PROJECT_KEY\" -d:sonar.login=\"$SONAR_TOKEN\" -d:sonar.host.url=\"$SONAR_HOST_URL\" -d:sonar.cs.opencover.reportsPaths=coverage.xml"
- "dotnet build --no-incremental"
- coverlet .\CovExample.Tests\bin\Debug\net6.0\CovExample.Tests.dll --target "dotnet" --targetargs "test --no-build" -f=opencover -o="coverage.xml"
- "dotnet sonarscanner end -d:sonar.login=\"$SONAR_TOKEN\""
How to solve the error, help please!