Commit da7a116b authored by 智勇's avatar 智勇

fix

parent 6464715c
...@@ -559,10 +559,11 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) { ...@@ -559,10 +559,11 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
if (isDeploy=="true") { if (isDeploy=="true") {
def projectAttr = project_attr(systemName) def projectAttr = project_attr(systemName)
def host = projectAttr["host"].split(".")[0] def host = projectAttr["host"]
def hostArray = host.split(".")
imageTag = imageTag.replaceAll("ccr.ccs.tencentyun.com/","") imageTag = imageTag.replaceAll("ccr.ccs.tencentyun.com/","")
_utils().beautyEcho("[新集群][deployV2]将镜像更新到到Namespace:" + namespace, "info") _utils().beautyEcho("[新集群][deployV2]将镜像更新到到Namespace:" + namespace, "info")
update_microservice(namespace, systemName, imageTag, tier, host) update_microservice(namespace, systemName, imageTag, tier, hostArray[0])
} else { } else {
_utils().beautyEcho( "isDeploy == false,不执行deploy","info") _utils().beautyEcho( "isDeploy == false,不执行deploy","info")
} }
......
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