a jenkins log with Sonarqube scan and Quality gate check has:
Sonarqube scan stage
[INFO] ANALYSIS SUCCESSFUL, you can browse https://sonarhost/dashboard?id=com.foo.bar%3Afoobar&branch=develop&resolved=false [INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
and several lines later the stage calling the waitForQualityGate() step
[Pipeline] waitForQualityGate Checking status of SonarQube task 'AWvlJ68gLuEoJXZj3QSp' on server 'SONAR' SonarQube task 'AWvlJ68gLuEoJXZj3QSp' status is 'SUCCESS' SonarQube task 'AWvlJ68gLuEoJXZj3QSp' completed. Quality gate is 'ERROR' [Pipeline] error
In case of Quality gate is ‘ERROR’, i have to scroll back and search for the project dashboard url in the log which is annoying. The waitForQualityGate() step should log this url also.
Note that this url is already contained in webhook payload.