Kaynağa Gözat

Fix docker push for branches containing slashes

Jamie Curnow 5 yıl önce
ebeveyn
işleme
f9e15a4470
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -14,7 +14,7 @@ pipeline {
 		COMPOSE_FILE               = 'docker/docker-compose.ci.yml'
 		COMPOSE_INTERACTIVE_NO_CLI = 1
 		BUILDX_NAME                = "${COMPOSE_PROJECT_NAME}"
-		BRANCH_LOWER               = "${BRANCH_NAME.toLowerCase()}"
+		BRANCH_LOWER               = "${BRANCH_NAME.toLowerCase().replaceAll('/', '-')}"
 	}
 	stages {
 		stage('Environment') {