-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(quality-gates): Match positively on buildkite agent names, inst…
…ead of the agent manager
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |