Hi
I am using below Jenkins and SonarQube version.
Jenkins: - 2.73.3
SonarQube: - 6.7
I want to update the Sonarqube quality gate status on jenkins pipeline if QG is fail than Jenkins job should be failed. I have used below configuration in our Jenkins pipeline.
Well most likely the parameter abortPipeline was added in a newer version of the plugin that requires a newer Jenkins verison. So you should update Jenkins to latest LTS and update all plugins to latest version for that LTS.
Only the hard way by checking out the sources of the sonar plugin and see if you can get the current code compiled against your old version. Or checkout the version you use and try to reimplement that particular feature.
Maybe there is another way of finding out if you need to abort by doing http requests to a server. but I have no idea how that could look like.
Hi Markus.
Now i am using below Jenkins and SonarQube version.
Jenkins: - 2.440.2
SonarQube: - 9.9.5
I want to update the Sonarqube quality gate status on jenkins pipeline if QG is fail than Jenkins job should be failed. I have used below configuration in our Jenkins pipeline.
stage(“Quality Gate”) {
steps {
timeout(time: 3, unit: ‘MINUTES’) {
waitForQualityGate abortPipeline: true
}
}
}
After successfully analysis QG is showing passed in sonarqube dashboard but still not getting the correct response on Jenkins pipeline.