Skip to content

Commit 7829535

Browse files
committed
use buildkite agent step command
1 parent 6305711 commit 7829535

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.buildkite/scripts/build_pr_teardown.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env bash
22

33
set -euo pipefail
4-
echo "debug"
4+
55
# This hook should only be invoked for builds triggered by the Buildkite PR bot
66
if [ -z ${GITHUB_PR_OWNER+set} ] || [ -z ${GITHUB_PR_REPO+set} ] || [ -z ${GITHUB_PR_TRIGGERED_SHA+set} ];then
77
exit 0
88
fi
9-
echo "running now"
9+
1010
gitHubToken=$(vault read -field=value secret/ci/elastic-docs/docs_preview_cleaner)
1111

12-
if [ -n "$BUILDKITE_COMMAND_EXIT_STATUS" ] && [ "$BUILDKITE_COMMAND_EXIT_STATUS" -eq "0" ];then
12+
if [ $$(buildkite-agent step get "outcome" --step "build-pr") == "passed" ]; then
1313
status_state="success"
1414
else
1515
status_state="failure"

0 commit comments

Comments
 (0)