Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #371 from andrewhsu/clean
Browse files Browse the repository at this point in the history
[19.03] Jenkinsfile: ensure all containers are cleaned up
  • Loading branch information
andrewhsu authored Sep 20, 2019
2 parents 2399b7a + 4b5c535 commit 23c7134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,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 '''
Expand Down

0 comments on commit 23c7134

Please sign in to comment.