Skip to content

Commit 5341733

Browse files
fix: replace all / with --, not just first
1 parent f5c0417 commit 5341733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/jenkins/azure/jenkins-pipelines-javaspring-k8s.Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pipeline {
101101
env.dynamic_docker_branch_tag = sh(
102102
script: """#!/bin/bash
103103
DOCKER_BRANCH_TAG="${env.CHANGE_ID ? "pr-${source_branch_ref}" : source_branch_ref}"
104-
DOCKER_BRANCH_TAG="\${DOCKER_BRANCH_TAG/"/"/"--"}"
104+
DOCKER_BRANCH_TAG="\${DOCKER_BRANCH_TAG//"/"/"--"}"
105105
echo -n "\${DOCKER_BRANCH_TAG}"
106106
""",
107107
returnStdout: true,

0 commit comments

Comments
 (0)