Browse Source

jenkinsfile

formation 3 years ago
parent
commit
89f4a3a4e7
1 changed files with 19 additions and 19 deletions
  1. 19 19
      Jenkinsfile

+ 19 - 19
Jenkinsfile

@@ -135,27 +135,27 @@ 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)') 
-    // {
-    //     sh 'docker-compose -v'
-    //     sh 'docker-compose build'
-    //     sh 'docker-compose up -d'
-    // }
+    stage('Build Docker MEAN Stack(PreProduction Deployment)') 
+    {
+        sh 'docker-compose -v'
+        sh 'docker-compose build'
+        sh 'docker-compose up -d'
+    }
    
     stage('Fin du Pipeline') 
     {