diff --git a/Jenkinsfile b/Jenkinsfile index 10a2cb5..bef48a8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -142,7 +142,9 @@ pipeline { /d:sonar.host.url="\$SONAR_HOST_URL" \ /d:sonar.login="\$SONAR_AUTH_TOKEN" - dotnet build -c Release /warnaserror- -p:TreatWarningsAsErrors=false + dotnet build -c Release \ + -p:TreatWarningsAsErrors=false \ + -warnaserror dotnet sonarscanner end /d:sonar.login="\$SONAR_AUTH_TOKEN" """