formation 3 năm trước cách đây
mục cha
commit
cc26b6b645
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      Jenkinsfile

+ 1 - 5
Jenkinsfile

@@ -137,16 +137,12 @@ node{
 	// }
     stage('SonarQube analysis') 
     {  
-     steps {
-      script {
-         scannerHome = tool 'SonarQube Scanner'
+         def scannerHome = tool name: 'SonarQube Scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation';
         withSonarQubeEnv('SonarQube') 
         { 
         // If you have configured more than one global server connection, you can specify its name
         sh "${scannerHome}/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=azerty10"
         }
-      }
-     }
     }