fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-06-16 13:29:00 +02:00
parent 1f4e98075c
commit a31b735d3c
1 changed files with 11 additions and 10 deletions

7
Jenkinsfile vendored
View File

@ -55,15 +55,15 @@ pipeline {
TZ = 'Europe/Madrid' TZ = 'Europe/Madrid'
} }
steps { steps {
script {
if (!env.BRANCH_NAME.equals('test') && !env.BRANCH_NAME.equals('master')) {
stage('Frontend') { stage('Frontend') {
steps {
nodejs('node-v20') { nodejs('node-v20') {
sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2' sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2'
} }
} }
}
stage('Backend') { stage('Backend') {
steps {
nodejs('node-v20') { nodejs('node-v20') {
sh 'npm run test:back:ci' sh 'npm run test:back:ci'
} }
@ -71,6 +71,7 @@ pipeline {
} }
} }
} }
}
stage('Build') { stage('Build') {
when { anyOf { when { anyOf {
branch 'test' branch 'test'