stage('Sonarqube Analysis') {
environment {
scannerHome = tool 'Sonar scanner'
}
steps {
withSonarQubeEnv('Sonarserver') {
sh "${scannerHome}/bin/sonar-scanner"
}
if ("${json.projectStatus.status}" == "ERROR") {
currentBuild.result = 'FAILURE'
error('Pipeline aborted due to quality gate failure.')
}
Latest posts by Rajesh Kumar (see all)
- What is ZooKeeper? - April 29, 2024
- What is Mobile Virtual Network Operator? - April 18, 2024
- What is Solr? - April 17, 2024