Jenkinsfile fixes
This commit is contained in:
parent
59bfff22e4
commit
27cc8ba2b1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue