refs #5739 feat: try run test back and front
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-01-15 15:13:30 +01:00
parent 40afa1083c
commit 1351f303e1
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -44,7 +44,7 @@ pipeline {
// sh "docker network create testing-salix-5739-dockerrefactor_default" // sh "docker network create testing-salix-5739-dockerrefactor_default"
sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml rm --stop" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml rm --stop"
sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml build --force-rm db back" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml build --force-rm db back"
sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml up db" // sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml up db"
} }
} }
stage('Test') { stage('Test') {
@ -77,10 +77,11 @@ pipeline {
environment { environment {
NODE_ENV = "" NODE_ENV = ""
TZ = 'Europe/Madrid' TZ = 'Europe/Madrid'
STACK_NAME_LC="${env.STACK_NAME}".toLowerCase()
} }
steps { steps {
sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml rm -s -f" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml rm -s -f"
sh "docker network rm testing-${env.STACK_NAME}_default" sh "docker network rm testing-${STACK_NAME_LC}_default"
} }
} }
stage('Build') { stage('Build') {