use sonar buildbreaker
@@ -152,20 +152,12 @@ pipeline {
}
}
- stage ("SAST: Scan code and submit reports") {
+ stage ("SAST: Scan code and Check Quality gate") {
steps {
sh "mvn sonar:sonar -Prelease-site,all-modules -Dmaven.test.failure.ignore=true -Djavamelody.storage-directory=/tmp/javamelody-jenkins/ -Dmaven.test.skip=true -Dsonar.dynamicAnalysis=reuseReports -Dsonar.host.url=http://192.168.1.15:9000/sonar/ -Dsonar.cfn.nag.reportFiles=target/cia-dist-cloudformation.yml.nagscan -Dsonar.dependencyCheck.xmlReportPath=citizen-intelligence-agency/target/dependency-check-report.xml -Dsonar.dependencyCheck.htmlReportPath=citizen-intelligence-agency/target/dependency-check-report.html -Dsonar.zaproxy.reportPath=${WORKSPACE}/baseline-scan-report.xml"
}
}
- stage ("Check Quality gate") {
-
- steps {
- sh "mvn com.hack23.maven:sonar-quality-gates-maven-plugin:1.0.4:inspect -Dsonar.host.url=http://192.168.1.15:9000/sonar"
- }
-
- }
-
stage ("System test JDK12") {
tools {
jdk 'JDK12'
