Skip to content

Commit

Permalink
Merge pull request #108 from check-run-reporter/fix-buildkite-hostname
Browse files Browse the repository at this point in the history
fix: pass hostname from buildkite to cli
  • Loading branch information
ianwremmel authored Apr 16, 2022
2 parents b1e9f5d + 8f3ebaf commit aa8d81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ log () {
echo "$@" 1>&2
}

HOSTNAME=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_HOSTNAME:-api.check-run-reporter.com}
LABEL=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL:-$BUILDKITE_LABEL}
ROOT=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_ROOT:-$(find_root)}
SHA=$BUILDKITE_COMMIT
Expand All @@ -65,6 +66,7 @@ else
fi

$BIN submit \
--hostname="$HOSTNAME" \
--label="$LABEL" \
--report="$REPORT_DIR" \
--root="$ROOT" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ log () {
echo "$@" 1>&2
}

HOSTNAME=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_HOSTNAME:-api.check-run-reporter.com}
LABEL=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL:-$BUILDKITE_LABEL}
TOKEN=$BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN
TESTS=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TESTS:-''}
Expand Down Expand Up @@ -39,6 +40,7 @@ fi

export CHECK_RUN_REPORTER_TESTS_FOR_THIS_AGENT
CHECK_RUN_REPORTER_TESTS_FOR_THIS_AGENT=$($BIN split \
--hostname="$HOSTNAME" \
--label="$LABEL" \
--nodeCount="$NODE_COUNT" \
--nodeIndex="$NODE_INDEX" \
Expand Down

0 comments on commit aa8d81b

Please sign in to comment.