环境:sonarqube8.4 community docker 部署
sonar-gitlab-plugin-4.1.0-SNAPSHOT.jar
gitlab runner sonarsource/sonar-scanner-cli:4
1.
java.lang.NullPointerException
这里未找到具体解决方案,我将sonar-gitlab-plugin卸载替换版本成4.0然后再替换回来(4.1)就不再出现这个问题
2.
com.talanlabs.gitlab.api.v4.GitLabAPIException: {"message":{"name":["has already been taken"]}}at com.talanlabs.gitlab.api.v4.http.GitLabHTTPRequestor.handleAPIError(GitLabHTTPRequestor.java:397)
这个问题参考github,将gitlab-ci.yaml文件soanrqube的job名称修改后就解决了该问题
stages: - build - analysis - test # - package # - deploy script: - dotnet build --interactive --source http://10.26.6.181:8081/repository/nuget-repo-group/ sonarqube:(-->修改为sonar-analysis) variables: SONAR_TOKEN: "71df66b8e30dc18cb957d38d794a5b9d14e6a4cb" SONAR_HOST_URL: "http://your-sonarqube-instance.org" SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache GIT_DEPTH: 0 stage: analysis