gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Integration with GitLab CI #108

Closed heruan closed 6 years ago

heruan commented 6 years ago

In the README there are examples of how to integrate SQ with GitLab CI and they make use of secret variables -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN. I suppose SONAR_URL is something like http://localhost:9000/ or similar, but what about SONAR_LOGIN? How should I put in that variable?

gabrie-allaigre commented 6 years ago

Hi,

SONAR_LOGIN is a token in SonarQube, -> top/right -> My Account -> Security -> Create token

or use your login (SONAR_LOGIN) and password (SONAR_PASSWORD)

heruan commented 6 years ago

Thank you!