Commit 74c5c536 by bergquist

tech(build): update windows trigger

parent afd13594
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment