|
|
@@ -37,14 +37,14 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- stage('Install Dependencies & Test') {
|
|
|
- steps {
|
|
|
- withEnv(["PATH=${tool 'NodeJS'}/bin:${env.PATH}"]) {
|
|
|
- sh 'npm install --legacy-peer-deps'
|
|
|
- sh 'npm run test -- --no-watch --no-progress --browsers=ChromeHeadless'
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // stage('Install Dependencies & Test') {
|
|
|
+ // steps {
|
|
|
+ // withEnv(["PATH=${tool 'NodeJS'}/bin:${env.PATH}"]) {
|
|
|
+ // sh 'npm install --legacy-peer-deps'
|
|
|
+ // sh 'npm run test -- --no-watch --no-progress --browsers=ChromeHeadless'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
stage('SonarQube Analysis') {
|
|
|
steps {
|
|
|
@@ -63,15 +63,15 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- stage('Stop & Clean Containers') {
|
|
|
- steps {
|
|
|
- sh """
|
|
|
- docker ps | grep "workflow_" -v | awk '{if(NR>1) print \$1}' | xargs docker kill || true
|
|
|
- docker-compose -f ${env.COMPOSE_FILE} down || true
|
|
|
- docker system prune -f
|
|
|
- """
|
|
|
- }
|
|
|
- }
|
|
|
+ // stage('Stop & Clean Containers') {
|
|
|
+ // steps {
|
|
|
+ // sh """
|
|
|
+ // docker ps | grep "workflow_" -v | awk '{if(NR>1) print \$1}' | xargs docker kill || true
|
|
|
+ // docker-compose -f ${env.COMPOSE_FILE} down || true
|
|
|
+ // docker system prune -f
|
|
|
+ // """
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
stage('Build & Deploy') {
|
|
|
steps {
|