Essentially this is a redirect to the url of the sonar dashboard for the specified project. This file can be created by a separate task. Alternately, we can add this file to the project repository, say in “src/main/config”
Assuming the later, add this file as an artifact to the “quality” stage.
We have asked Go to copy the file “sonar.html” from the system (Go Agent) that runs the job to the Go server.
Now add a custom ta
This tells Go add a new tab for the “quality” stage to display the sonar dashboard. We are telling Go to open the page sonar.html, which will redirect to the Sonar dashboard thanks to the meta refresh that we have therein.
We can now drill down into the sonar dashboard from within Go.
Disclaimer: The statements and opinions expressed in this article are those of the author(s) and do not necessarily reflect the positions of Thoughtworks.