diff --git a/vars/kubecontainer.groovy b/vars/kubecontainer.groovy index b33e52c..3277851 100644 --- a/vars/kubecontainer.groovy +++ b/vars/kubecontainer.groovy @@ -47,7 +47,7 @@ String buildAndPublishImage(Map options = [:]) { stage("Build image '${imageName}:${imageTag}'") { git.withHTTPCredentials(gitCredentialsId) { sh """ - make + CURRENT_BRANCH=${BRANCH_NAME} make """ } } @@ -62,7 +62,7 @@ String buildAndPublishImage(Map options = [:]) { utils.when(!dryRun) { retry(2) { sh """ - make release + CURRENT_BRANCH=${BRANCH_NAME} make release """ } }