24 lines
590 B
Groovy
24 lines
590 B
Groovy
pipeline {
|
|
agent { label 'agent_smith' }
|
|
|
|
stages {
|
|
stage('recreate > build > reun container') {
|
|
steps {
|
|
sh "docker images -a"
|
|
sh "docker-compose down --rmi all"
|
|
sh "docker images -a"
|
|
sh "docker-compose up --force-recreate --build -d parse_saby"
|
|
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"
|
|
}
|
|
}
|
|
|
|
stage('show logs') {
|
|
steps {
|
|
sh "docker-compose logs -f"
|
|
}
|
|
}
|
|
}
|
|
}
|