Skip to content
Permalink
Browse files

Tag images pushed from master with latest.

  • Loading branch information
Chris Bynum
Chris Bynum committed Aug 29, 2016
1 parent 63fc4af commit d6b5db4387cab72faa740221acc26d44cc0b670c
Showing with 10 additions and 2 deletions.
  1. +10 −2 Jenkinsfile
@@ -14,11 +14,19 @@ node('docker') {
sh 'mv bin/* ../bin/.'
}
stage 'Environment'

def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
if(!imagename){

// 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 d6b5db4

Please sign in to comment.
You can’t perform that action at this time.