mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 16:35:29 +08:00
Merge pull request #36 from milvus-ci-robot/0.5.0
Fix Jenkins CI remove local docker images bug Former-commit-id: 36137303cdd5cfad6375156efbaab7a44a181c2b
This commit is contained in:
commit
c50e112a64
@ -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