Update Jenkinsfile-prod
This commit is contained in:
@@ -13,6 +13,15 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Remove Old Image') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
catchError(buildResult: 'SUCCESS', message: 'Image doesn\'t exist, skipping...', stageResult: 'ABORTED') {
|
||||||
|
sh 'docker rmi git.ruff.co.il/amai.ig/otomai:latest'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Run new container in Production') {
|
stage('Run new container in Production') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
@@ -28,4 +37,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user