test in paralel
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-06-16 14:06:36 +02:00
parent 998597dfcc
commit 1027e0753e
1 changed files with 11 additions and 12 deletions

23
Jenkinsfile vendored
View File

@ -54,19 +54,18 @@ pipeline {
NODE_ENV = ""
TZ = 'Europe/Madrid'
}
steps {
script {
if (!env.BRANCH_NAME.equals('test') && !env.BRANCH_NAME.equals('master')) {
stage('Backend') {
nodejs('node-v20') {
sh 'npm run test:back:ci'
}
parallel {
stage('Frontend') {
steps {
nodejs('node-v20') {
sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2'
}
stage('Frontend') {
nodejs('node-v20') {
sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2'
}
}
}
stage('Backend') {
steps {
nodejs('node-v20') {
sh 'npm run test:back:ci'
}
}
}