Commit b0253190 authored by wentao.suo's avatar wentao.suo

change dockerbuild_and_push buildNumber to date String

parent 92f14257
......@@ -229,7 +229,9 @@ def dockerbuild_and_push(timeNow, buildNumber, branchName, harborGroup, systemNa
safeBranchName = branchName.replaceAll(regex,"_")
defaultSystemName = "project"
imageTag = "192.168.4.36/${harborGroup}/${k8sSystemName}:${safeBranchName}-${buildNumber}"
timeStemp = new Date().format("yyyyMMddHHmmss")
imageTag = "192.168.4.36/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
withDockerServer([uri: "tcp://192.168.4.96:2375/"]) {
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