Open gregluk opened 6 years ago
I wanted to ask, do you use gitlab ee edition in order to put anything from sonarqube to gitlab ?
I used gitlab ce which is working fine, I just need a way of constructing the url above in the template
And if you are using gitlab ci you need to use runner right ? You don't have gitlab enterprise edition ?
Hi, Use ${baseUrl}/issues?open=${issue.key}
Use Gitlab ce and sonarqube ce
And then I will have to add gitlab runner ?
No gitlab runner is not mandatory, jenkins work.
Sorry good url is
${baseUrl}/issues?id=${issue.componentKey}&open=${issue.key}&branch=${refName}
I don't want to link directly to an issue though, I want to go to the main page showing all the issues in that scan on sonarqube. Is this not possible? I can only link directly to a specific issue in sonarqube?
+1
Note: I am using the branch plugin so I can see the issues in sonarqube.
In the global comment template can I add a link direct to the project and branch in SonarQube?
The url will be something like this:
[View in SonarQube]https://testserver/sonarqube/project/issues?branch=${branchname}&id=${projectkey}
example: [View in SonarQube]https://testserver/sonarqube/project/issues?branch=feature1&id=com.test:myproject
For ${branchname} I can use the variable ${refName} as shown in your documentation. But how can I get the sonarqube project key for the id (com.test:myproject) . Is there a variable I can use to get this? Ideally I don't want it direct to a specific issue, I just want the project key. Similar to {Issue.componentKey} but I want one like ${componentKey} ?
Thanks