mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
Fix Jenkins CI remove local docker images bug
Former-commit-id: ba9b95147d672fce1bbd12a373b17f88a6f349f1
This commit is contained in:
parent
83ce07b9d4
commit
17ce3bb49c
@ -21,12 +21,6 @@ container('publish-images') {
|
||||
}
|
||||
|
||||
def customImage = docker.build("${imageName}")
|
||||
|
||||
isExistImage = sh(returnStatus: true, script: "docker inspect --type=image ${dockerRegistryURL}/${imageName} 2>&1 > /dev/null")
|
||||
if (isExistImage == 0) {
|
||||
sh "docker rmi ${dockerRegistryURL}/${imageName}"
|
||||
}
|
||||
|
||||
docker.withRegistry("https://${dockerRegistryURL}", "${params.DOCKER_CREDENTIALS_ID}") {
|
||||
customImage.push()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user