fix publishImages.groovy bug

Former-commit-id: 73b6ab5a4d28f7af93300dd5a281dc449f2dd756
pull/191/head
test 2019-10-16 23:42:57 +08:00
parent f75012e0fa
commit 2909cfcfd9
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ container('publish-images') {
def customImage = docker.build("${imageName}")
isExistImage = sh(returnStatus: true, script: "docker inspect --type=image ${dockerRegistryURL}/${imageName} 2>&1 > /dev/null"
isExistImage = sh(returnStatus: true, script: "docker inspect --type=image ${dockerRegistryURL}/${imageName} 2>&1 > /dev/null")
if (isExistImage == 0) {
sh "docker rmi ${dockerRegistryURL}/${imageName}"
}