Commit 4e248c20 authored by wentao.suo's avatar wentao.suo

edit imagetag timestemp to branch hashcode

parent a43c07a0
......@@ -21,9 +21,9 @@ def contextMkdir(key) {
def imageTag(harborGroup,k8sSystemName,safeBranchName,timeStemp){
def imageTag4_4=[:]
def branchHash = sh (script: 'git log -1 --pretty=%H',returnStdout: true).trim()
imageTag4_4["harborHost"]="http://192.168.4.4"
imageTag4_4["imageTag"] = "192.168.4.4/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_4["imageTag"] = "192.168.4.4/${harborGroup}/${k8sSystemName}:${safeBranchName}-${branchHash}"
return [ imageTag4_4 ]
}
......
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