diff options
author | Matt Clay <matt@mystile.com> | 2018-07-09 21:06:13 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2018-07-09 21:48:11 -0700 |
commit | 528de5b82f1e59a1a04c596e084921de81d92646 (patch) | |
tree | c820756e74ad2ddb543290a9421bf5358166c1a1 /test/utils/shippable/shippable.sh | |
parent | 673c55f2efce52c155872c80b0bff160e4a7b7b7 (diff) | |
download | ansible-528de5b82f1e59a1a04c596e084921de81d92646.tar.gz |
Remove unwanted containers at CI job start.
Diffstat (limited to 'test/utils/shippable/shippable.sh')
-rwxr-xr-x | test/utils/shippable/shippable.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/utils/shippable/shippable.sh b/test/utils/shippable/shippable.sh index 54dc2fbbd1..3396ecc8bf 100755 --- a/test/utils/shippable/shippable.sh +++ b/test/utils/shippable/shippable.sh @@ -12,6 +12,12 @@ test="$1" docker images ansible/ansible docker ps +for container in $(docker ps --format '{{.Image}} {{.ID}}' | grep -v '^drydock/' | sed 's/^.* //'); do + docker rm -f "${container}" +done + +docker ps + if [ -d /home/shippable/cache/ ]; then ls -la /home/shippable/cache/ fi |