Update Jenkinsfile
This commit is contained in:
parent
e205c228e9
commit
bf95fbbc8a
|
@ -12,9 +12,11 @@ pipeline {
|
|||
// Stop running microblog container
|
||||
sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true'
|
||||
// Prune old containers that are not running
|
||||
sh 'echo y | docker container prune'
|
||||
sh 'docker container prune -f'
|
||||
// Deploy new container
|
||||
sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest'
|
||||
// Remove all images that don't have a container running them
|
||||
sh 'docker image prune -a'
|
||||
}
|
||||
}
|
||||
stage('Selenium Tests') {
|
||||
|
|
Loading…
Reference in New Issue