ci: refs#6706 Jenkinsfile tuning
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-02-04 21:17:47 +01:00
parent 9cda07bc5a
commit 766008ce1a
1 changed files with 68 additions and 76 deletions

26
Jenkinsfile vendored
View File

@ -53,7 +53,8 @@ pipeline {
TZ = 'Europe/Madrid'
}
parallel {
stage('Backend') { stages {
stage('Backend') {
stages {
stage('Install') {
environment {
NODE_ENV = ""
@ -94,12 +95,14 @@ pipeline {
sh 'docker-compose build back'
}
}
}}
stage('Frontend') { stages {
stage('Install') {
}
}
stage('Frontend') {
when {
expression { FROM_GIT }
}
stages {
stage('Install') {
environment {
NODE_ENV = ""
}
@ -127,7 +130,8 @@ pipeline {
sh 'docker-compose build front'
}
}
}}
}
}
}
}
stage('Push') {
@ -183,18 +187,6 @@ pipeline {
}
}
post {
always {
script {
if (RUN_TESTS) {
try {
junit 'junitresults.xml'
junit 'junit.xml'
} catch (e) {
echo e.toString()
}
}
}
}
success {
script {
if (env.BRANCH_NAME == 'master' && FROM_GIT) {