summaryrefslogtreecommitdiff
path: root/.buildkite
diff options
context:
space:
mode:
authorChristopher A. Snapp <csnapp@chef.io>2020-03-25 11:31:44 -0600
committerChristopher A. Snapp <csnapp@chef.io>2020-03-25 11:51:04 -0600
commit73a646897e972fa1cca8444909fba42696c07950 (patch)
treec198e9d413a9f02a30320907eb6d1d31a9d4143f /.buildkite
parent74d0628a1c1fbb6c378dcce80343e830fff9d230 (diff)
downloadchef-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-command3
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