|
|
@@ -24,39 +24,34 @@ node{
|
|
|
// {
|
|
|
// docker.withRegistry('http://localhost:8083','885ef60c-9352-489a-bd1c-e4b695747c21')
|
|
|
// {
|
|
|
- // imageApache.push('latest')
|
|
|
- // imageExpress.push('latest')
|
|
|
- // }
|
|
|
+ // 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=sqa_9980d9f6eac6a910947f1b55aaa280c93f02236b"
|
|
|
- }
|
|
|
- }
|
|
|
+ // 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)')
|
|
|
+ stage('Build Docker MEAN Stack(Test Deployment)')
|
|
|
{
|
|
|
sh 'docker-compose -v'
|
|
|
- sh 'docker-compose stop'
|
|
|
sh 'docker-compose build'
|
|
|
sh 'docker-compose up -d'
|
|
|
}
|
|
|
|
|
|
stage('Fin du Pipeline')
|
|
|
{
|
|
|
- sh 'echo "Félicitation tout s\'est bien déroulé!"'
|
|
|
+ sh 'echo "Félicitation tout c\'est bien déroulé!"'
|
|
|
}
|
|
|
}
|