diff --git a/Jenkinsfile b/Jenkinsfile index bb4ab11..88d0611 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -132,13 +132,13 @@ pipeline { /d:sonar.host.url="$SONAR_HOST_URL" \ /d:sonar.login="$SONAR_AUTH_TOKEN" \ /d:sonar.exclusions="**/bin/**,**/obj/**" \ - /d:sonar.test.exclusions="**/*.Tests/**" + /d:sonar.test.exclusions="**/*.Tests/**"\ + /d:sonar.issue.ignore.multicriteria.e1.ruleKey="csharpsquid:S2068" \ + /d:sonar.issue.ignore.multicriteria.e1.resourceKey="**/appsettings*.json" dotnet clean -c Release # สำคัญ: ปิด warnings-as-errors - dotnet build -c Release \ - -p:TreatWarningsAsErrors=false\ - -warnaserror + dotnet build -c Release -warnaserror:false -p:TreatWarningsAsErrors=false ''' }