Add the 'latest' label.
This commit is contained in:
parent
d3886c4fa9
commit
720381f977
|
@ -34,7 +34,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
docker.withRegistry( registryUrl, registryCredential ) {
|
docker.withRegistry( registryUrl, registryCredential ) {
|
||||||
dockerImage.push("$BUILD_NUMBER")
|
dockerImage.push("$BUILD_NUMBER")
|
||||||
dockerImage.push('wb3-ecosystem')
|
dockerImage.push('latest')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ pipeline {
|
||||||
stage('Remove Unused docker image') {
|
stage('Remove Unused docker image') {
|
||||||
steps{
|
steps{
|
||||||
sh "docker rmi $hubname/$imagename:$BUILD_NUMBER"
|
sh "docker rmi $hubname/$imagename:$BUILD_NUMBER"
|
||||||
sh "docker rmi $hubname/$imagename:wb3-ecosystem"
|
sh "docker rmi $hubname/$imagename:latest"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue