执行后报错:
ERROR: SonarQube installation defined in this job (sonar) does not match any configured installation. Number of installations that can be configured: 1.

If you want to reassign jobs to a different SonarQube installation, check the documentation under https://redirect.sonarsource.com/plugins/jenkins.html

Finished: FAILURE

同样的命令,单独把分支拉取下来,是可以执行的

        stage('sonarqube analysis') {
            steps {
                withSonarQubeEnv('sonar') {
                    container('maven') {
                        sh """
                            ls -l .
                            mvn sonar:sonar -Dsonar.projectKey=devops -Dsonar.host.url=http://10.1.1.12:31132 -Dsonar.login=103b6fd12510e31d992674ae5ec402bb7f43b2b0
                        """
                    }
                }
            }
        }
10 天 后

shaowenchen

Cauchy
大佬们好,我想问一下,kubesphere 2.1开启DevOps时,没有安装对应的sonarqube,请问我需要怎么在2.1 安装sonarqube,用kubesphere 3.0安装sonarqube会不会有冲突?

4 个月 后
20 天 后

shaowenchen

Cauchy

大佬,问一下,是不是helm是2.16版本不支持你上述的安装,使用helm 2.16应该怎么安装?


还有我不太懂,helm怎么升级到3版本?

    johnniang 谢谢,我发现了是这个原因,我想知道的是helm 2.16版本怎么下载sonarqube,大哥你懂吗?

      johnniang 谢谢,也是访问不了的,主要是我嫌helm2升级到helm3麻烦,所以想找helm2安装sonarqube

      15 天 后
      17 天 后

      用helm3 版本3.4.1 安装sonarqube 使用helm upgrade –install sonarqube sonarqube –repo https://charts.kubesphere.io/main -n kubesphere-devops-system –create-namespace –set service.type=NodePort 命令安装

      一直都是显示连接拒绝的错误,请问这是什么问题

      1 个月 后

      都配置了一直报这错,啥情况?

        猜测是你的 Jenkins 中配置的 Sonarqube 的名称和流水线中使用的不一致

        我们有计划对集成 Sonarqube 做优化,请查看 kubesphere/ks-devops#42

        2 个月 后
        19 天 后