Skip to content

Commit

Permalink
Fix variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbyrnes committed Jul 21, 2016
1 parent 8a9f30d commit 73c3fcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Expand Up @@ -8,11 +8,11 @@ node {

stage 'Build Docker images'
parallel ruby22: {
buildImage('ruby22')
buildImage('ruby22', safeBranchName)
}, ruby23: {
buildImage('ruby23')
buildImage('ruby23', safeBranchName)
}, full: {
buildImage('full')
buildImage('full', safeBranchName)
},
failFast: true

Expand All @@ -31,6 +31,6 @@ node {
step([$class: 'GitHubCommitStatusSetter'])
}

def buildImage(image) {
def buildImage(image, safeBranchName) {
sh "docker build -t registry.evertrue.com/evertrue/passenger-${image}:${safeBranchName}-${env.BUILD_ID} -f Dockerfile-${image} ."
}

0 comments on commit 73c3fcc

Please sign in to comment.