Help troubleshooting Publish Quality Gate Result failure

One of our projects is failing to build via Azure DevOps on the Publish Quality Gate Result task. Unfortunately, the logs are less than helpful.

2018-11-27T12:44:44.3618462Z ##[section]Starting: Publish Quality Gate Result
2018-11-27T12:44:44.3626115Z ==============================================================================
2018-11-27T12:44:44.3626777Z Task         : Publish Quality Gate Result
2018-11-27T12:44:44.3627404Z Description  : Publish SonarCloud's Quality Gate result on the VSTS/TFS build result, to be used after the actual analysis.
2018-11-27T12:44:44.3628027Z Version      : 1.3.0
2018-11-27T12:44:44.3628495Z Author       : sonarsource
2018-11-27T12:44:44.3629104Z Help         : [More Information](
2018-11-27T12:44:44.3629751Z ==============================================================================
2018-11-27T12:44:47.2342369Z ##[error][SQ] Task failed with status FAILED
2018-11-27T12:44:47.6414939Z ##[section]Finishing: Publish Quality Gate Result

Where can I find out more information about why this task is failing?

It’s working for other projects under the same DevOps/SonarCloud accounts with the same setup. This project was also working back on 11/20/2018, but when we build the same code on 11/27/2018, it’s failing. There were no changes in our build pipeline since then.

Set the DevOps build variable system.debug to true e.g.

This will turn on the DevOps debugging output, and in the version of the SonarCloud extension you are using it also has the effect of setting sonar.verbose=true which increases the logging level for the Sonar Java components too.

1 Like