formation 3 年之前
父節點
當前提交
3d7c18a7a2
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Jenkinsfile

+ 3 - 1
Jenkinsfile

@@ -137,7 +137,9 @@ node{
 	// }
     stage('SonarQube analysis') 
 		{
-			def scannerHome = tool 'SonarQube Scanner';
+			environment {
+      SCANNER_HOME = tool 'Sonar-scanner'
+    }
 			withSonarQubeEnv('SonarQube') 
 			{ 
 			// If you have configured more than one global server connection, you can specify its name