-DGERRIT_HOST=gerrit.me (gerrit host) -DGERRIT_HTTP_PORT=80 (访问gerrit web的端口) -DGERRIT_HTTP_USERNAME=$gerrit_user (jenkins登录gerrit使用的账号) -DGERRIT_HTTP_PASSWORD=$password (jenkins登录gerrit使用的账号) -Dsonar.analysis.mode=preview (要生成sonar-gerrit-plugin要求的报告,必须使用preview...
sh"mvn clean verify sonar:sonar -Dsonar.pullrequest.key=${env.GERRIT_CHANGE_NUMBER}-${env.GERRIT_PATCHSET_NUMBER} -Dsonar.pullrequest.base=${env.GERRIT_BRANCH} -Dsonar.pullrequest.branch=${env.GERRIT_REFSPEC}"} } Gerrit Gerrit Trigger configuration Gerrit Triggerplugin should be installed an...
Gerrit Trigger configuration Gerrit Trigger plugin should be installed and configured. Rest API should be configured in the Advanced section of Gerrit Trigger settings. HTTP authentication data should be set up. Enable Code-Review and Enable Verified checkboxes should be checked on. For complete guidan...
<name>Sonar Gerrit Plugin</name> <url>https://github.com/jenkinsci/sonar-gerrit-plugin</url> <dependencyManagement> <dependencies> <dependency> <groupId>io.jenkins.tools.bom</groupId> <artifactId>bom-${jenkins.baseline}.x</artifactId> ...
对于jenkins 触发的 job 我是通过 jenkins 中 gerrit 的触发机制,当开发change-merge到开发分支的时候触发 job 执行。 2、sonar 环境配置 sonar 环境配置分两步,sonar 和 mysql. 【1】sonar 在这里我在 mac 和 linux 环境都尝试搭建了 sonar。 sonar 下载地址为:https://www.sonarqube.org/downloads/ ...
chore: Migrate from gerrit to github pipelines (#17) May 7, 2024 Repository files navigation README Code of conduct Apache-2.0 license Security Sonar Operator ❗ Please refer to KubeRocketCI documentation to get the notion of the main concepts and guidelines. Get acquainted with the Sonar Oper...
问Sonarqube不向Jenkins和Gerrit报告结果EN安装jenkins 略 安装SonarQube version: "3" services: ...
1. sonar-gerrit-plugin-2.3.0.jar 将jar包复制到$SONARQUBE_HOME/extensions/plugins/下 2. 以admin用户登录sonarqube dashboard -> Administration -> Security -> Users 3. 选择要使用的user生成user token,该token作为jenkins登录sonarqube的用户凭证,保存好token。