Skip to content

Commit

Permalink
Update Jenkinsfile fix build git tag (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatSaif authored Oct 15, 2019
1 parent 49bc39f commit eab3d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ pipeline {
stage('Build') {
when {
beforeAgent true
expression { return (scmVars.GIT_BRANCH in tag || scmVars.TAG_NAME) }
expression { return (scmVars.GIT_BRANCH in tag || env.TAG_NAME) }
}
agent { label 'd3-build-agent' }
steps {
script {
scmVars = checkout scm
docker_tag = scmVars.TAG_NAME ? scmVars.TAG_NAME : tag[scmVars.GIT_BRANCH]
docker_tag = env.TAG_NAME ? env.TAG_NAME : tag[scmVars.GIT_BRANCH]
def iC = docker.build("nexus.iroha.tech:19002/d3-deploy/back-office:${tag[scmVars.GIT_BRANCH]}")
docker.withRegistry('https://nexus.iroha.tech:19002', 'nexus-d3-docker') {
iC.push()
Expand Down

0 comments on commit eab3d40

Please sign in to comment.