This commit is contained in:
Kameron Kenny 2024-06-05 13:27:18 -04:00
parent 59d5f3e301
commit 549440dbc3
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 0 additions and 15 deletions

15
Jenkinsfile vendored
View File

@ -20,21 +20,6 @@ pipeline {
}
}
stage('Stop container') {
steps {
script {
def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
if (status_s != 0) {
sh 'docker --context pi502 compose down'
sh 'sleep 5'
} else {
echo 'skip'
}
}
}
}
stage('Start container') {
steps {
script {