Skip to content

Commit

Permalink
Using latest tag for publication instead of master
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 12, 2016
1 parent 2f2ab91 commit ee27e17
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ node {

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

// 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'
Expand Down

0 comments on commit ee27e17

Please sign in to comment.