forked from mrlan/EnglishPal
Jenkinsfile: stop all containers.
parent
7163b6032f
commit
de7a140cbd
|
@ -11,7 +11,7 @@ pipeline {
|
||||||
stage('BuildIt') {
|
stage('BuildIt') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
echo 'Building..'
|
||||||
sh 'sudo docker stop $(sudo docker ps -q --filter ancestor=englishpal)'
|
sh 'sudo docker kill $(sudo docker ps -q)'
|
||||||
sh 'sudo docker build -t englishpal .'
|
sh 'sudo docker build -t englishpal .'
|
||||||
sh 'sudo docker run -d -p 91:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal'
|
sh 'sudo docker run -d -p 91:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue