no stop
This commit is contained in:
parent
59d5f3e301
commit
549440dbc3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue