Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-01-11 13:57:07 +01:00
parent 59bfff22e4
commit 27cc8ba2b1
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -7,7 +7,7 @@ pipeline {
REGISTRY = 'registry.verdnatura.es'
DOCKER_HOST_1 = 'tcp://vch1.verdnatura.es:2376'
DOCKER_HOST_2 = 'tcp://vch1.verdnatura.es:2376'
TAG = env.BRANCH_NAME
TAG = "${env.BRANCH_NAME}"
}
script {
env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-');
@ -45,7 +45,7 @@ pipeline {
}
stage ('Install') {
environment {
NODE_ENV = null
NODE_ENV = ''
}
nodejs('node-lts') {
sh "npm install --no-audit"
@ -70,14 +70,14 @@ pipeline {
parallel(
vch1: {
environment {
DOCKER_HOST = env.DOCKER_HOST_1
DOCKER_HOST = "${env.DOCKER_HOST_1}"
}
sh "docker-compose pull"
sh "docker-compose up -d"
},
vch2: {
environment {
DOCKER_HOST = env.DOCKER_HOST_2
DOCKER_HOST = "${env.DOCKER_HOST_2}"
}
sh "docker-compose pull"
sh "docker-compose up -d"