We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d105b16 commit a93be40Copy full SHA for a93be40
git-buildkite
@@ -1,5 +1,7 @@
1
#!/bin/bash
2
3
+VERSION="v0.6.0"
4
+
5
BUILDKITE_ORGANIZATION="${BUILDKITE_ORGANIZATION:-$(git config buildkite.organization)}"
6
7
if [[ -z "$BUILDKITE_ORGANIZATION" && -n "$BUILDKITE_ACCOUNT" ]]; then
@@ -139,7 +141,8 @@ function build() {
139
141
# status code and the response body on error, so we have to check
140
142
# the content for errors later.
143
curl -# "https://api.buildkite.com/v2/organizations/${BUILDKITE_ORGANIZATION}/pipelines/${BUILDKITE_PIPELINE}/builds" \
- -H "Authorization: Bearer $BUILDKITE_API_KEY" \
144
+ -A "git-buildkite/${VERSION}" \
145
+ -H "Authorization: Bearer ${BUILDKITE_API_KEY}" \
146
-X POST \
147
-F "branch=$1" \
148
-F "commit=$2" \
0 commit comments