Merge pull request #39957 from tiborvass/jenkins-cleanup-all-containers

Jenkinsfile: ensure all containers are cleaned up
This commit is contained in:
Tibor Vass 2019-09-18 16:59:00 -07:00 committed by GitHub
commit 5feaae02fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -701,6 +701,8 @@ pipeline {
sh '''
echo "Ensuring container killed."
docker rm -vf docker-pr$BUILD_NUMBER || true
cids=$(docker ps -aq -f name=docker-pr${BUILD_NUMBER}-*)
[ -n "$cids" ] && docker rm -vf $cids || true
'''
sh '''