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

fix

parent b2fd7ea4
...@@ -468,10 +468,12 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) { ...@@ -468,10 +468,12 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
return imageTag return imageTag
}*/ }*/
def clean_images(imageTags,contextDir) { def clean_images(imageTagInfos,contextDir) {
sh "rm -rf ${contextDir}" sh "rm -rf ${contextDir}"
for (imageTag in imageTags){ for (imageTagInfo in imageTagInfos){
if (imageTag){
if (imageTagInfo["imageTag"]){
imageTag = imageTagInfo["imageTag"]
sh "docker rmi -f \$(docker images -q ${imageTag})" 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