diff --git a/Jenkinsfile b/Jenkinsfile index d1fed24..087dfcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,14 +4,13 @@ pipeline { stages { stage('recreate > build > reun container') { steps { - sh "docker images" + sh "docker images -a" sh "docker-compose down --rmi all" - sh "docker images" + sh "docker images -a" sh "docker-compose up --force-recreate --build -d parse_saby" - sh "docker images" - sh "docker image remove -f git.dataekb.ru/sadikov/parse_saby/parse_saby_main" - sh "docker image remove -f parse-saby" - sh "docker images" + sh "docker images -a" + sh "docker images -a | grep "git.dataekb.ru/sadikov/parse_saby/parse_saby_main" | awk '{print $3}' | xargs docker rmi" + sh "docker images -a" } }