diff options
author | Christopher A. Snapp <csnapp@chef.io> | 2020-03-25 11:31:44 -0600 |
---|---|---|
committer | Christopher A. Snapp <csnapp@chef.io> | 2020-03-25 11:51:04 -0600 |
commit | 73a646897e972fa1cca8444909fba42696c07950 (patch) | |
tree | c198e9d413a9f02a30320907eb6d1d31a9d4143f /.buildkite | |
parent | 74d0628a1c1fbb6c378dcce80343e830fff9d230 (diff) | |
download | chef-73a646897e972fa1cca8444909fba42696c07950.tar.gz |
Modify pre-command hook to only run in verify pipeline
Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
Diffstat (limited to '.buildkite')
-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 |