Commit 737bea23 authored by 智勇's avatar 智勇

删除镜像

parent 97d0a9ad
......@@ -577,8 +577,9 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
def clean_images(imageTag,imageTagCode,contextDir) {
sh "rm -rf ${contextDir}"
if (imageTag){
sh "docker rmi -f \$(docker images -q ${imageTag})"
if (cluster=="pro"){
sh "docker rmi -f \$(docker images -q ${imageTagCode})"
}else if (cluster=="test") {
sh "docker rmi -f \$(docker images -q ${imageTag})"
}
}
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