fix jenkinsfile
This commit is contained in:
parent
53a0e87234
commit
29a2863520
|
|
@ -56,8 +56,12 @@ pipeline {
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
script {
|
||||||
|
if (env.VERSION ==~ /^\d+\.\d+\.\d+\.\d+$/) {
|
||||||
|
sh "docker rmi pfsdn:${env.VERSION} || true"
|
||||||
|
}
|
||||||
|
}
|
||||||
cleanWs()
|
cleanWs()
|
||||||
sh "docker rmi pfsdn:${env.VERSION}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue