shaowenchenK零SK贰SK壹S
KubeSphere v3.0.0对接SonarQube
nanjofanK零S
shaowenchen 可以用了,是之前配置installer的时候token的位置写错了,感谢
执行后报错:
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
"""
}
}
}
}
Cauchy
大佬们好,我想问一下,kubesphere 2.1开启DevOps时,没有安装对应的sonarqube,请问我需要怎么在2.1 安装sonarqube,用kubesphere 3.0安装sonarqube会不会有冲突?
- 已编辑
Error: looks like “https://charts.kubesphere.io/main” is not a valid chart repository or cannot be reached: Get https://charts.kubesphere.io/main/index.yaml: dial tcp: lookup charts.kubesphere.io on 172.20.10.1:53: read udp 192.168.0.6:34861->172.20.10.1:53: i/o timeout
安装报这个错误是为什么
JjohnniangK零S
YangYongQiang 你的网络无法访问 github 资源,导致无法正常下载 helm3。
johnniang 谢谢,我发现了是这个原因,我想知道的是helm 2.16版本怎么下载sonarqube,大哥你懂吗?
johnniang 谢谢,也是访问不了的,主要是我嫌helm2升级到helm3麻烦,所以想找helm2安装sonarqube
- 已编辑
johnniang
请问一下,这个是什么问题,helm已经是3版本了,但是执行以下命令又提示要更新helm仓库
执行更新操作,虽然成功了,但是有一个Get “http://127.0.0.1:8879/charts/index.yaml”: dial tcp 127.0.0.1:8879:这个错误
yuswiftK零S
YangYongQiang 你什么时候配置了一个local chart 如果没配过 先删除再更新吧
yuswift 十分感谢,就是因为这个问题,解决了
用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 命令安装
一直都是显示连接拒绝的错误,请问这是什么问题
KkumuK零S
都配置了一直报这错,啥情况?
RickK零S
猜测是你的 Jenkins 中配置的 Sonarqube 的名称和流水线中使用的不一致
我们有计划对集成 Sonarqube 做优化,请查看 kubesphere/ks-devops#42