Update Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -55,11 +55,15 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Clean old container') {
|
||||
stage('Clean Old Container') {
|
||||
steps {
|
||||
// Shell command to stop and kill the named container
|
||||
try {
|
||||
sh 'docker stop otomai'
|
||||
sh 'docker rm -rf otomai'
|
||||
} catch (err) {
|
||||
// Ignore the error if the container doesn't exist
|
||||
echo "Container 'otomai' doesn't exist. Skipping."
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run new container') {
|
||||
|
||||
Reference in New Issue
Block a user