diff options
author | Tim Smith <tsmith@chef.io> | 2020-03-25 11:11:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 11:11:35 -0700 |
commit | 15f29977e0fcd620058c662b9e788db42ef34432 (patch) | |
tree | 8f73ce27472ef6c6562d871123dab69b0199c5f6 | |
parent | 5c62c59b11e5ceb0b37acbc2579dcb8bcd4f1ced (diff) | |
parent | 73a646897e972fa1cca8444909fba42696c07950 (diff) | |
download | chef-15f29977e0fcd620058c662b9e788db42ef34432.tar.gz |
Merge pull request #9537 from chef/csnapp/fix_precommand_hook
Modify pre-command hook to only run in verify pipeline
-rw-r--r-- | .buildkite/hooks/pre-command | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index ea4b9f8b23..6f9dcecdf6 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -2,6 +2,9 @@ set -eu +# Only execute in the verify pipeline +[[ "$BUILDKITE_PIPELINE_NAME" =~ verify$ ]] || exit 0 + docker ps || true free -m || true |