Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-02-18 08:55:58 +01:00
parent f56043e786
commit a1364c653c
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -6,6 +6,7 @@ pipeline {
disableConcurrentBuilds() disableConcurrentBuilds()
} }
environment { environment {
PROJECT_NAME = 'salix'
REGISTRY = 'registry.verdnatura.es' REGISTRY = 'registry.verdnatura.es'
DOCKER_HOST_1 = 'vch1.verdnatura.es' DOCKER_HOST_1 = 'vch1.verdnatura.es'
DOCKER_HOST_2 = 'vch2.verdnatura.es' DOCKER_HOST_2 = 'vch2.verdnatura.es'
@ -15,7 +16,7 @@ pipeline {
stage('Checkout') { stage('Checkout') {
steps { steps {
script { script {
env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-') env.COMPOSE_PROJECT_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
env.GIT_COMMITTER_EMAIL = sh( env.GIT_COMMITTER_EMAIL = sh(
script: 'git --no-pager show -s --format="%ae"', script: 'git --no-pager show -s --format="%ae"',
returnStdout: true returnStdout: true