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