Unable to use jenkins sonar plugin inbuilt function waitForQualityGate() with global proxy configuration

Template for a good bug report, formatted with Markdown:

environment {
SONAR_SCANNER_OPTS="-Dhttp.proxyHost=<proxyhost> -Dhttp.proxyPort=<proxyport> -Dhttps.proxyHost=<proxyhost> -Dhttps.proxyPort=<proxyport>"
stage("Quality Gate"){
timeout(time: 1, unit: 'HOURS') {
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

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)

A post was split to a new topic: Help navigating community