Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-01-11 14:06:13 +01:00
parent eb3aa84fc5
commit 1e63adbdca
1 changed files with 33 additions and 24 deletions

9
Jenkinsfile vendored
View File

@ -35,6 +35,7 @@ pipeline {
break;
}
}
checkout scm
script {
env.GIT_COMMITTER_EMAIL = sh(
@ -49,15 +50,18 @@ pipeline {
environment {
NODE_ENV = ''
}
steps {
nodejs('node-lts') {
sh "npm install --no-audit"
sh "gulp install"
}
}
}
stage ('Build') {
environment {
CREDS = credentials('docker-registry')
}
steps {
nodejs('node-lts') {
sh "gulp build"
}
@ -65,10 +69,12 @@ pipeline {
sh "docker-compose build --parallel"
sh "docker-compose push"
}
}
stage ('Deploy') {
environment {
DOCKER_TLS_VERIFY = 1
}
steps {
parallel(
vch1: {
environment {
@ -86,10 +92,13 @@ pipeline {
}
)
}
}
stage ('Cleanup') {
steps {
sh 'docker logout $REGISTRY'
}
}
}
post {
always {
script {