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