Commit 6a33dbd1 authored by kalvin's avatar kalvin

修改镜像推送地址4.4

parent 4ab47a6e
...@@ -34,10 +34,10 @@ def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, conte ...@@ -34,10 +34,10 @@ def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, conte
safeBranchName = branchName.replaceAll(regex,"_") safeBranchName = branchName.replaceAll(regex,"_")
safeSystemName = "project" safeSystemName = "project"
imageTag = "192.168.4.36/${harborGroup}/${systemName}:${safeBranchName}-${buildNumber}" imageTag = "192.168.4.4/${harborGroup}/${systemName}:${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.4"]) {
def image = docker.build(imageTag, "--build-arg SYSTEM_NAME=${systemName} ${contextDir}") def image = docker.build(imageTag, "--build-arg SYSTEM_NAME=${systemName} ${contextDir}")
image.push() image.push()
} }
......
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