Template for a good bug report, formatted with Markdown:
- 2.11 version: https://plugins.jenkins.io/sonar/ in Jenkins
environment {
SONAR_SCANNER_OPTS="-Dhttp.proxyHost=<proxyhost> -Dhttp.proxyPort=<proxyport> -Dhttps.proxyHost=<proxyhost> -Dhttps.proxyPort=<proxyport>"
}
stage("Quality Gate"){
steps{
timeout(time: 1, unit: 'HOURS') {
script{
def qg = steps.waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
}
}
}
So waitForQualityGate() is not detecting proxy and saying our intenral sonar server is not reachable
Workaround:
As an alternative performed curl on the server for that particular task id with api call and able to check whether success or failure.
Please let me know if this new feature can be added to use inbuilt function with proxy: waitForQualityGate(proxy)