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

21
Jenkinsfile vendored
View File

@ -55,17 +55,18 @@ pipeline {
TZ = 'Europe/Madrid'
}
steps {
stage('Frontend') {
steps {
nodejs('node-v20') {
sh 'jest --ci --reporters=default --reporters=jest-junit --maxWorkers=2'
script {
if (!env.BRANCH_NAME.equals('test') && !env.BRANCH_NAME.equals('master')) {
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'
stage('Backend') {
nodejs('node-v20') {
sh 'npm run test:back:ci'
}
}
}
}