From 0a2b4816676462356295950c0e5e97fa1ef345f6 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 31 Jan 2025 13:15:36 +0100 Subject: [PATCH] test: refs #6695 build backend and frontend in parallel --- Jenkinsfile | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fef88be2d..a23fad69b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -105,25 +105,24 @@ pipeline { sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git' } } - stage('Up Database') { - steps { - sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d' + stage('Up') { + parallel { + stage('DB & Backend') { + steps { + sh 'cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d' + sh 'docker build -f ./salix/back/Dockerfile -t back ./salix' + sh 'docker run -d --name salix_e2e --net=host -v $(pwd)/test/cypress/storage:/salix/storage back' + } + } + stage('Frontend') { + steps { + sh 'quasar build' + sh 'docker-compose -f docker-compose.e2e.yml up -d --build front' + } + } } } - stage('Up Backend') { - steps { - sh 'docker build -f ./salix/back/Dockerfile -t back ./salix' - sh 'docker run -d --name salix_e2e --net=host -v $(pwd)/test/cypress/storage:/salix/storage back' - } - } - stage('Up Frontend') { - steps { - sh 'quasar build' - sh 'docker-compose -f docker-compose.e2e.yml build front' - sh 'docker-compose -f docker-compose.e2e.yml up -d front' - } - } - stage('Run E2E') { + stage('Run') { steps { sh 'docker-compose -f docker-compose.e2e.yml build e2e' sh 'docker-compose -f docker-compose.e2e.yml up e2e'