fix(kube): replace special caracters in branch name
This commit is contained in:
parent
418891082a
commit
bad27aa934
@ -47,7 +47,7 @@ String buildAndPublishImage(Map options = [:]) {
|
||||
stage("Build image '${imageName}:${imageTag}'") {
|
||||
git.withHTTPCredentials(gitCredentialsId) {
|
||||
sh """
|
||||
CURRENT_BRANCH=${BRANCH_NAME} make
|
||||
CURRENT_BRANCH=$( echo ${BRANCH_NAME} | | tr -c '[:alnum:]\n\r' '_'| tr '[:upper:]' '[:lower:]') make
|
||||
"""
|
||||
}
|
||||
}
|
||||
@ -62,7 +62,7 @@ String buildAndPublishImage(Map options = [:]) {
|
||||
utils.when(!dryRun) {
|
||||
retry(2) {
|
||||
sh """
|
||||
CURRENT_BRANCH=${BRANCH_NAME} make release
|
||||
CURRENT_BRANCH=$( echo ${BRANCH_NAME} | | tr -c '[:alnum:]\n\r' '_'| tr '[:upper:]' '[:lower:]') make
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user