Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Now tagging images pushed from master with latest
Chris Bynum committed Aug 31, 2016
1 parent 51e088a commit ac77935
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Jenkinsfile
@@ -14,10 +14,18 @@ node('docker') {
sh 'mv bin/* ../bin/.'
}
stage 'Environment'

def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME

// Tag images created on master branch with 'latest'
if(env.BRANCH_NAME == "master"){
tag = "latest"
}else{
tag = env.BRANCH_NAME
}

if(!imagename){
echo "You must define an imagename in common.bash"
currentBuild.result = 'FAILURE'

0 comments on commit ac77935

Please sign in to comment.