1、 进入jenkins中安装SonarQube Plugin插件

jenkins整合sonarqube


2、 系统管理-系统配置-

3、 配置SonarQube服务器:Jenkins—>系统管理—>GlobalTool Configuration —>SonarQube Runner

4、   新建任务

 

#Configure here general information aboutthe environment, such as SonarQube DB details for example

#No information about specific projectshould appear here

 

#----- Default SonarQube server

 

 

#----- Default source code encoding

sonar.projectKey=signautre:signautre

sonar.projectName=signautre

sonar.projectVersion=2.0

sonar.sources=.

sonar.projectBaseDir=D:/log4jWP/

 

#----- Global database settings (not usedfor SonarQube 5.2+)

#----- MySQL

sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8

sonar.jdbc.username=sonar

sonar.jdbc.password=sonar

sonar.sourceEncoding=UTF-8

sonar.host.url=http://localhost:9000

sonar.login=admin  

sonar.password=admin


更多优质文章:

jenkins整合sonarqube

相关文章:

  • 2021-05-18
  • 2021-11-10
  • 2021-11-04
  • 2021-11-18
  • 2021-12-29
  • 2022-01-23
  • 2022-02-13
  • 2021-11-01
猜你喜欢
  • 2021-08-22
  • 2022-12-23
  • 2021-12-25
  • 2022-03-11
相关资源
相似解决方案