fix named branches in jenkinsfile (#249)

This commit is contained in:
Ivan Borovkov 2018-02-06 12:29:17 +02:00 committed by GitHub
parent 3d454c9f8d
commit 9f1f04c3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
Jenkinsfile vendored
View File

@ -14,9 +14,9 @@ def dockerreponame = "statusim/openbounty-app"
def openbountyApp = docker.build("${dockerreponame}:${env.BUILD_NUMBER}")
openbountyApp.push("${env.BRANCH_NAME}")
if (env.BRANCH_NAME == 'develop') {
openbountyApp.push("${dockerreponame}:develop")
openbountyApp.push("develop")
} else if (env.BRANCH_NAME == 'master') {
openbountyApp.push("${dockerreponame}:master")
openbountyApp.push("master")
} else {
println "Not named branch have no custom tag"
}