Forráskód Böngészése

commentaire du deuxième node dans jenkinsfile

henri carmelo 10 hónapja
szülő
commit
34892be0fc
1 módosított fájl, 51 hozzáadás és 51 törlés
  1. 51 51
      Jenkinsfile

+ 51 - 51
Jenkinsfile

@@ -151,60 +151,60 @@ pipeline {
 
 
 
-node{
-
-    env.NODEJS_HOME = "${tool 'NodeJS'}"
-    // on linux / mac
-    env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}"
-    // on windows
-    //env.PATH="${env.NODEJS_HOME};${env.PATH}"
-    sh 'npm --version'
-
-	stage('checkout')
-	{
-		deleteDir()
-		checkout scm
-	}
+// node{
+
+//     env.NODEJS_HOME = "${tool 'NodeJS'}"
+//     // on linux / mac
+//     env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}"
+//     // on windows
+//     //env.PATH="${env.NODEJS_HOME};${env.PATH}"
+//     sh 'npm --version'
+
+// 	stage('checkout')
+// 	{
+// 		deleteDir()
+// 		checkout scm
+// 	}
 	 
-	 stage('Stop Containers')
-    {
-        sh 'docker ps | grep "workflow_" -v | awk -F " " \'{ if(NR>1) print $1}\' |xargs docker kill |xargs docker rm || true'
-        sh 'docker system prune -f'
-    }
+// 	 stage('Stop Containers')
+//     {
+//         sh 'docker ps | grep "workflow_" -v | awk -F " " \'{ if(NR>1) print $1}\' |xargs docker kill |xargs docker rm || true'
+//         sh 'docker system prune -f'
+//     }
 	
 	
-	// stage("Push preprod images to nexus")
-	// {
-	// 	docker.withRegistry('http://localhost:8083','885ef60c-9352-489a-bd1c-e4b695747c21')
-	// 	{
-	// 		imageApache.push('latest')
-	// 		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("Push preprod images to nexus")
+// 	// {
+// 	// 	docker.withRegistry('http://localhost:8083','885ef60c-9352-489a-bd1c-e4b695747c21')
+// 	// 	{
+// 	// 		imageApache.push('latest')
+// 	// 		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('Build Docker MEAN Stack(Test Deployment)') 
-    {
-        sh 'docker-compose -v'
-        sh 'docker-compose build'
-        sh 'docker-compose up -d'
-    }
+//     stage('Build Docker MEAN Stack(Test Deployment)') 
+//     {
+//         sh 'docker-compose -v'
+//         sh 'docker-compose build'
+//         sh 'docker-compose up -d'
+//     }
    
-    stage('Fin du Pipeline') 
-    {
-       sh 'echo "Félicitation tout c\'est bien déroulé!"'  
-   }
-}
+//     stage('Fin du Pipeline') 
+//     {
+//        sh 'echo "Félicitation tout c\'est bien déroulé!"'  
+//    }
+// }