我在用
sonar-gitlab-plugin
@4.0.0和sonarQube@7.5,
我的gitlab-ci.yml是:
sonar-scanner \
-Dsonar.projectKey=$SONAR_KEY \
-Dsonar.sources=. \
-Dsonar.host.url=$SONAR_URL \
-Dsonar.login=$SONAR_LOGIN
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME \
-Dsonar.gitlab.project_id=$CI_PROJECT_ID
如果这个承诺不在
Master
分支,当质量门失败时,SonarQube总是生成如下全局注释:
But always says "reported no issues" and `no inline comment`,
在主分支中提交
硕士
我希望它会生成带有问题的全局注释,并在所有分支上生成内联注释。