tech(build): updates circle ci trigger scripts

This commit is contained in:
bergquist
2017-01-10 15:06:48 +01:00
parent 65ac0bc68b
commit 0719a66d47
2 changed files with 25 additions and 3 deletions
+24 -2
View File
@@ -2,9 +2,31 @@
_circle_token=$1
trigger_build_url=https://circleci.com/api/v1/project/grafana/grafana-packer/tree/master?circle-token=${_circle_token}
trigger_build_url=https://circleci.com/api/v1/project/grafana/grafana-packer/tree/v4.1.x?circle-token=${_circle_token}
post_data=$(cat <<EOF
{
"build_parameters": {
"BRANCH": "v4.1.x"
}
}
EOF
)
echo ${post_data}
curl \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--request POST ${trigger_build_url}
--data "${post_data}" \
--request POST ${trigger_build_url}
#curl \
#--header "Accept: application/json" \
#--header "Content-Type: application/json" \
#-X POST -d '{ "build_parameters": { "BRANCH": "v4.1.x"} }' \
#${trigger_build_url}
#--request POST ${trigger_build_url}
+1 -1
View File
@@ -5,5 +5,5 @@ _token=$1
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${_token}" \
-X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "master","environmentVariables": {}}' \
-X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "v4.1.x","environmentVariables": {}}' \
https://ci.appveyor.com/api/builds