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)
- Mastering Qualitative Research: The Role of Focus Groups in Data Collection - July 11, 2024
- What is robots ops? - July 10, 2024
- 5 Effective Online Learning Strategies for DevOps Professionals - July 4, 2024