Commit 70b9d28f authored by 智勇's avatar 智勇

host

parent da7a116b
......@@ -550,7 +550,7 @@ def dockerbuild_and_push(imageTagInfo,buildNumber,systemName,branchName,cluster,
}
}
/* 设置etcd镜像信息 */
set_image_info(systemName, branchHashCode, imageTag)
// set_image_info(systemName, branchHashCode, imageTag)
}
def deploy(namespace, systemName, imageTag, tier, isDeploy) {
......@@ -561,9 +561,12 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
def projectAttr = project_attr(systemName)
def host = projectAttr["host"]
def hostArray = host.split(".")
def hostFirst = hostArray[0]
echo "host is : ${host} "
echo "hostFirst is : ${hostFirst} "
imageTag = imageTag.replaceAll("ccr.ccs.tencentyun.com/","")
_utils().beautyEcho("[新集群][deployV2]将镜像更新到到Namespace:" + namespace, "info")
update_microservice(namespace, systemName, imageTag, tier, hostArray[0])
update_microservice(namespace, systemName, imageTag, tier, hostFirst)
} else {
_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