环境: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"]}}

这个问题参考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

 

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2020-04-10
  • 2021-09-21
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-10-14
  • 2022-12-23
  • 2021-05-26
  • 2021-10-27
相关资源
相似解决方案