add elses

This commit is contained in:
Kameron Kenny 2024-05-15 18:52:34 -04:00
parent 6c98db3473
commit 0678450906
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 8 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -41,6 +41,8 @@ pipeline {
if (status_p != 0) {
sh 'docker compose down'
sh 'sleep 5'
} else {
echo 'skip'
}
}
}
@ -53,6 +55,8 @@ pipeline {
sh 'docker compose down'
sh 'docker compose up -d --no-color primary'
sh 'docker compose ps'
} else {
echo 'skip'
}
}
}
@ -70,6 +74,8 @@ pipeline {
if (status_s != 0) {
sh 'docker --context pi502 compose down'
sh 'sleep 5'
} else {
echo 'skip'
}
}
}
@ -81,6 +87,8 @@ pipeline {
if (status_s != 0) {
sh 'docker --context pi502 compose up -d --no-color secondary'
sh 'docker --context pi502 compose ps'
} else {
echo 'skip'
}
}
}