CI - SonarQube Quality Gate Result

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube)
  • how is SonarQube deployed: Docker
  • what are you trying to achieve
    I am able to connect Codefresh and run a sonar scan. After the pipeline run, the Codefresh Terminal Logs display something like :
INFO: ...
INFO: ...
INFO: Analysis report uploaded in 25ms
INFO: ANALYSIS SUCCESSFUL, you can browse https://instanceurl/dashboard?id=Projectname
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://instanceurl/api/ce/task?id=<somerandomid>
INFO: Analysis total time: 18.668 s
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 15.400s
INFO: Final Memory: 15M/90M
INFO: ------------------------------------------------------------------------
[21:30:12] Analysis finished.

I am not concerned with the INFO: EXECUTION SUCCESS but would like to receive the Post Analysis Report (Quality Gate Report) in the console or some other way(an api may be)

How can I get the details of the QC Gate - Bugs, Hot Spots and other info please ? and if analysis is a failure then I’d want to FAIL the Build.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

Take a look at this documentation on Failing a pipeline job when the quality gate fails

1 Like