Skip to content

Commit 43b5720

Browse files
author
Jamie Curnow
committed
Fix docker push for branches containing slashes, again
1 parent a25f196 commit 43b5720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ pipeline {
1010
IMAGE = "nginx-proxy-manager"
1111
BUILD_VERSION = getVersion()
1212
MAJOR_VERSION = "2"
13-
COMPOSE_PROJECT_NAME = "npm_${GIT_BRANCH}_${BUILD_NUMBER}"
13+
BRANCH_LOWER = "${BRANCH_NAME.toLowerCase().replaceAll('/', '-')}"
14+
COMPOSE_PROJECT_NAME = "npm_${BRANCH_LOWER}_${BUILD_NUMBER}"
1415
COMPOSE_FILE = 'docker/docker-compose.ci.yml'
1516
COMPOSE_INTERACTIVE_NO_CLI = 1
1617
BUILDX_NAME = "${COMPOSE_PROJECT_NAME}"
17-
BRANCH_LOWER = "${BRANCH_NAME.toLowerCase().replaceAll('/', '-')}"
1818
}
1919
stages {
2020
stage('Environment') {

0 commit comments

Comments
 (0)