diff --git a/.drone.yml b/.drone.yml index 865d564..7fc23c9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -82,12 +82,12 @@ steps: secrets: [ SECRET_SONAR_LOGIN ] environment: sonar_host: https://codefirst.iut.uca.fr/sonar/ - sonar_token: + sonar_token_wtf: from_secret: SECRET_SONAR_LOGIN project_key: wtf-service commands: - dotnet restore WF_EF_Api/WF_EF_Api.sln - - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${sonar_token} + - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.login=$${sonar_token_wtf} - dotnet build WF_EF_Api/WF_EF_Api.sln -c Release --no-restore - dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"