重要:一定要下载sonar qube7.9以下版本,其7.9以上版本不支持mysql,否则 白安装了。
四、在jenkins中,使用 pipelilne与sonar qube结合使用
(1)pipeline 配置如下,‘xx’中的内容 分别对应sonar scanner和sonar qube 在jenkin配置中起的名
(2)sonar scanner和sonar qube 在jenkin配置中起的名 ,分别如下:
三、jenkins与sonarqube相结合,检查代码质量
(1)配置jenkins中的某个项目,参数为如下:
# must be unique in a given SonarQube instance
sonar.projectKey=seleniumdemo
# this is the name displayed in the SonarQube UI
sonar.projectName=seleniumdemo
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for