Skip to content

Commit

Permalink
chore(quality-gates): Match positively on buildkite agent names, inst…
Browse files Browse the repository at this point in the history
…ead of the agent manager
  • Loading branch information
delanni committed Sep 4, 2023
1 parent ba5c0b1 commit 80ccbe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .buildkite/hooks/post-command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$BUILDKITE_AGENT_META_DATA_AGENT_MANAGER" = "kibana" ]; then
.buildkite/scripts/lifecycle/post_command.sh
else
if [[ "$BUILDKITE_AGENT_NAME" =~ ^bk-agent ]]; then
echo "Pipeline file triggered from outside the kibana executors, skipping post_command"
else
.buildkite/scripts/lifecycle/post_command.sh
fi
6 changes: 3 additions & 3 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$BUILDKITE_AGENT_META_DATA_AGENT_MANAGER" = "kibana" ]; then
source .buildkite/scripts/lifecycle/pre_command.sh
else
if [[ "$BUILDKITE_AGENT_NAME" =~ ^bk-agent ]]; then
echo "Pipeline file triggered from outside the kibana executors, skipping pre_command"
else
source .buildkite/scripts/lifecycle/pre_command.sh
fi

0 comments on commit 80ccbe1

Please sign in to comment.