run parallel
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-05-12 16:18:08 +02:00
parent f7077aaa3f
commit 9c54307059
1 changed files with 15 additions and 4 deletions

19
Jenkinsfile vendored
View File

@ -46,7 +46,7 @@ pipeline {
}
}
}
stage('Test/Back') {
stage('Test') {
when { not { anyOf {
branch 'test'
branch 'master'
@ -54,9 +54,20 @@ pipeline {
environment {
NODE_ENV = ""
}
steps {
nodejs('node-v14') {
sh 'npm run test:back:ci'
parallel {
stage('Frontend') {
steps {
nodejs('node-v14') {
sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2'
}
}
}
stage('Backend') {
steps {
nodejs('node-v14') {
sh 'npm run test:back:ci'
}
}
}
}
}