mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
4b16cd6cc8
* Build: introduce shellcheck Fixes #16198
28 lines
488 B
Bash
Executable File
28 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
_token=$1
|
|
_commit=$2
|
|
_buildType=$3
|
|
|
|
post_data=$(cat <<EOF
|
|
{
|
|
"accountName": "Torkeldegaard",
|
|
"projectSlug": "grafana",
|
|
"branch": "master",
|
|
"commitId": "${_commit}",
|
|
"environmentVariables": {
|
|
"buildType": "${_buildType}"
|
|
}
|
|
}
|
|
EOF
|
|
)
|
|
|
|
echo "${post_data}"
|
|
|
|
curl \
|
|
--header "Accept: application/json" \
|
|
--header "Content-Type: application/json" \
|
|
--header "Authorization: Bearer ${_token}" \
|
|
--data "${post_data}" \
|
|
--request POST https://ci.appveyor.com/api/builds
|