From 8136d52c0b264136bee0af22b781ecd2ec06bf99 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 7 Feb 2019 08:18:48 -0800 Subject: [PATCH] Whitelist the metrics-solana-com buildkite agent from docker container cleanup --- .buildkite/hooks/post-checkout | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/hooks/post-checkout b/.buildkite/hooks/post-checkout index db20f41cc6..5dde4f0ddd 100644 --- a/.buildkite/hooks/post-checkout +++ b/.buildkite/hooks/post-checkout @@ -7,8 +7,8 @@ export CI_BUILD_START # ( containers=$(docker ps -q) - if [[ -n $containers ]]; then - echo "Killing stale docker containers" + if [[ $(hostname) != metrics-solana-com && -n $containers ]]; then + echo "+++ Killing stale docker containers" docker ps # shellcheck disable=SC2086 # Don't want to double quote $containers