Permalink
Browse files
Tag images pushed from master with latest.
- Loading branch information
Showing
with
10 additions
and
2 deletions.
-
+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' |
|
|
} |
|
|