Is there a way to automate/script creation of new dashboards in SonarQube, either via the webservice api or some other means?
I have a need to create dashboards per future releases (Dashboard for Release 1, Dashboard for Release 2 etc) where each release is worked on as a Stream in RTC. This would be easier if the analysis was running against trunk, but this is not how the project is currently structured using a branch/stream strategy.
Currently, as we move to a new future release which is being worked on in a future Stream, I need to recreate an analysis job in Jenkins, and create a new Dashboard against that analysis.
The dashboards are configured with the same widgets each time, but pointing to a different analysis project/results.
Is there a way I can automate creation of a new Dashboard? I see there's a GET api/dashboards/show but what I'm looking for is an api to create, or clone from existing dashboard?
We're using SonarQube 5.1.