Commit e47c643c authored by daidekun's avatar daidekun

lowerSystemName

parent cb77f142
...@@ -137,9 +137,11 @@ def build_python(namespace, systemName, contextDir) { ...@@ -137,9 +137,11 @@ def build_python(namespace, systemName, contextDir) {
def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, contextDir) { def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, contextDir) {
regex = "[`,./;\\[\\]&<>?:\"()|-]+" regex = "[`,./;\\[\\]&<>?:\"()|-]+"
safeBranchName = branchName.replaceAll(regex,"_").toLowerCase() safeBranchName = branchName.replaceAll(regex,"_")
safeSystemName = "project" safeSystemName = "project"
imageTag = "192.168.4.36/${harborGroup}/${systemName}:${safeBranchName}-${buildNumber}" lowerSystemName = systemName.toLowerCase()
imageTag = "192.168.4.36/${harborGroup}/${lowerSystemName}:${safeBranchName}-${buildNumber}"
withDockerServer([uri: "tcp://192.168.4.96:2375/"]) { withDockerServer([uri: "tcp://192.168.4.96:2375/"]) {
withDockerRegistry([credentialsId: 'harbor-qajenkins', url: "http://192.168.4.36"]) { withDockerRegistry([credentialsId: 'harbor-qajenkins', url: "http://192.168.4.36"]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment