mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 16:31:28 -06:00
c2c1ec7d0f
* Chore: Move from master branch to main Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * CI: Upgrade build pipeline tool to v2 Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
28 lines
486 B
Bash
Executable File
28 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
|
|
_token=$1
|
|
_commit=$2
|
|
_buildType=$3
|
|
|
|
post_data=$(cat <<EOF
|
|
{
|
|
"accountName": "Torkeldegaard",
|
|
"projectSlug": "grafana",
|
|
"branch": "main",
|
|
"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
|