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

Commit 214d4ba

Browse files
authored
Merge pull request #371 from andrewhsu/clean
[19.03] Jenkinsfile: ensure all containers are cleaned up Upstream-commit: 23c7134bad1e877ae17efbb3a4559fc2ed82e14e Component: engine
2 parents 933da89 + ca10f69 commit 214d4ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/engine/Jenkinsfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,8 @@ pipeline {
662662
sh '''
663663
echo "Ensuring container killed."
664664
docker rm -vf docker-pr$BUILD_NUMBER || true
665+
cids=$(docker ps -aq -f name=docker-pr${BUILD_NUMBER}-*)
666+
[ -n "$cids" ] && docker rm -vf $cids || true
665667
'''
666668

667669
sh '''

0 commit comments

Comments
 (0)