formation il y a 3 ans
Parent
commit
22ba3fd575
1 fichiers modifiés avec 13 ajouts et 13 suppressions
  1. 13 13
      Jenkinsfile

+ 13 - 13
Jenkinsfile

@@ -135,19 +135,19 @@ node{
 	// 		imageExpress.push('latest')
 	// 	}*/
 	// }
-    // stage('SonarQube analysis') 
-    // {  
-    //      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.projectKey=FatboarProject \
-    //     -Dsonar.sources=. \
-    //     -Dsonar.host.url=https://sonarqube.foodgame.fr \
-    //     -Dsonar.login=sqp_09ee9072c917af8212864baf0f75c950afc14c64"
-    //     }
-    // }
+    stage('SonarQube analysis') 
+    {  
+         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.projectKey=FatboarProject \
+        -Dsonar.sources=. \
+        -Dsonar.host.url=https://sonarqube.foodgame.fr \
+        -Dsonar.login=sqp_09ee9072c917af8212864baf0f75c950afc14c64"
+        }
+    }
 	
 
     stage('Build Docker MEAN Stack(PreProduction Deployment)')