Commit 599b7ffa authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '6-sonar-login-deprecated' into 'main'

ci: change sonar.login to sonar.token due deprecation on new SonarScanner versions

Closes #6

See merge request to-be-continuous/dotnet!10
parents 75636475 969756b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ dotnet-sonar:
    - |
      $DOTNET_CLI_HOME/.dotnet/tools/dotnet-sonarscanner begin ${TRACE+/d:sonar.verbose=true} \
        /k:"${SONAR_PROJECT_KEY}" \
        /d:sonar.login="${SONAR_TOKEN}" \
        /d:sonar.token="${SONAR_TOKEN}" \
        /d:sonar.host.url="${SONAR_HOST_URL}" \
        /d:sonar.cs.opencover.reportsPaths="${CI_PROJECT_DIR}/reports/coverage.opencover.xml" \
        /d:sonar.cs.xunit.reportsPaths="${CI_PROJECT_DIR}/reports/dotnet-test.xunitnet.xml" \
@@ -513,7 +513,7 @@ dotnet-sonar:
    # build test project
    - dotnet build ${TRACE+--verbosity d} "${DOTNET_TEST_PROJECT_DIR}"
    - |
      $DOTNET_CLI_HOME/.dotnet/tools/dotnet-sonarscanner end /d:sonar.login="${SONAR_TOKEN}"
      $DOTNET_CLI_HOME/.dotnet/tools/dotnet-sonarscanner end /d:sonar.token="${SONAR_TOKEN}"
  cache:
    key: "${CI_COMMIT_REF_SLUG}-sonar"
    fallback_keys: