|
|
@@ -17,7 +17,7 @@ node { |
|
|
scannerHome = tool 'SonarQube-Scanner' |
|
|
scannerHome = tool 'SonarQube-Scanner' |
|
|
} |
|
|
} |
|
|
//引用SonarQube环境 "系统配置中配置的SonarQube servers的name值 " |
|
|
//引用SonarQube环境 "系统配置中配置的SonarQube servers的name值 " |
|
|
withSonarQubeEnv('sonar') { |
|
|
|
|
|
|
|
|
withSonarQubeEnv('Sonar') { |
|
|
//执行sonar-scanner命令 |
|
|
//执行sonar-scanner命令 |
|
|
sh "${scannerHome}/bin/sonar-scanner" |
|
|
sh "${scannerHome}/bin/sonar-scanner" |
|
|
} |
|
|
} |
|
|
|