grafana/scripts/trigger_windows_build.sh

28 lines
488 B
Bash
Raw Normal View History

#!/bin/bash
_token=$1
2017-01-31 14:36:52 -06:00
_commit=$2
_buildType=$3
post_data=$(cat <<EOF
{
"accountName": "Torkeldegaard",
"projectSlug": "grafana",
"branch": "master",
"commitId": "${_commit}",
"environmentVariables": {
"buildType": "${_buildType}"
}
}
EOF
)
echo "${post_data}"
curl \
2017-01-31 14:36:52 -06:00
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${_token}" \
--data "${post_data}" \
--request POST https://ci.appveyor.com/api/builds