formation il y a 3 ans
Parent
commit
06b6092156
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      Jenkinsfile

+ 3 - 0
Jenkinsfile

@@ -137,12 +137,15 @@ node{
 	// }
     stage('SonarQube analysis') 
 		{
+            steps {
+        script {
 			def scannerHome = tool 'SonarQube Scanner 2.8';
 			withSonarQubeEnv('SonarQube') 
 			{ 
 			// If you have configured more than one global server connection, you can specify its name
 			sh "${scannerHome}/bin/sonar-scanner  -Dsonar.host.url=https://sonarqube.foodgame.fr -Dsonar.login=sqp_09ee9072c917af8212864baf0f75c950afc14c64"
 			}
+        }
 		}
 	stage("Quality gate") {
       steps {