mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
tech(build): update windows trigger
This commit is contained in:
parent
afd135944a
commit
74c5c5368c
@ -1,9 +1,28 @@
|
||||
#!/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 \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${_token}" \
|
||||
-X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "master","environmentVariables": {}}' \
|
||||
https://ci.appveyor.com/api/builds
|
||||
--verbose \
|
||||
--header "Accept: application/json" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "Authorization: Bearer ${_token}" \
|
||||
--data "${post_data}" \
|
||||
--request POST https://ci.appveyor.com/api/builds
|
||||
|
Loading…
Reference in New Issue
Block a user