提交 83ce07b9 编写于 作者: M milvus-ci-robot

Fix Jenkins CI remove local docker images bug


Former-commit-id: ca4a21b49315f6ded581d5732e22541b97c44f31
上级 e45ba377
...@@ -37,11 +37,6 @@ container('publish-images') { ...@@ -37,11 +37,6 @@ container('publish-images') {
if (isExistImage == 0) { if (isExistImage == 0) {
sh "docker rmi ${imageName}" sh "docker rmi ${imageName}"
} }
isExistImage = sh(returnStatus: true, script: "docker inspect --type=image ${dockerRegistryURL}/${imageName} 2>&1 > /dev/null")
if (isExistImage == 0) {
sh "docker rmi ${dockerRegistryURL}/${imageName}"
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册