I'm using Gitlab and Sonarqube and the Sonarqube Plugin SVG Badges.
To represent the Sonarqube state on gitlab I have something like this in my README.md
file:
[](https://sonar.domain.com/component_measures/metric/coverage/list?id=de.domain:projectname)
This works perfect. My badge is shown, the link is working, everything is fine.
Is there some way to build something like:
[](https://sonar.domain.com/component_measures/metric/coverage/list?id={MYDOMAIN}:{THIS})
I want to provide a skeleton that every Developer just can copy and paste into their README.md
file and the variables are filled into the README automatically, with something like .gitlab-ci.yml
I also tried the permanent Gitlab Variables mentioned here but that wasn't working too!
[](https://sonar.domain.com/component_measures/metric/coverage/list?id={MYDOMAIN}:$CI_PROJECT_NAME)
Anyone has some idea?