Fix Jenkins CI remove local docker images bug

Former-commit-id: ca4a21b49315f6ded581d5732e22541b97c44f31
pull/191/head
milvus-ci-robot 2019-10-17 20:28:21 +08:00
parent e45ba377b8
commit 83ce07b9d4
1 changed files with 0 additions and 5 deletions

View File

@ -37,11 +37,6 @@ container('publish-images') {
if (isExistImage == 0) {
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}"
}
}
}
}