From da2aaf70951decf162c4e2c6c7993234179cbccb Mon Sep 17 00:00:00 2001 From: bergquist Date: Thu, 13 Oct 2016 17:11:04 +0200 Subject: [PATCH] feat(build): trigger windows build after successfull CI build --- circle.yml | 1 + scripts/trigger_windows_build.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100755 scripts/trigger_windows_build.sh diff --git a/circle.yml b/circle.yml index 007d0b29217..39dc626df04 100644 --- a/circle.yml +++ b/circle.yml @@ -28,3 +28,4 @@ deployment: owner: grafana commands: - ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN} + - ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} diff --git a/scripts/trigger_windows_build.sh b/scripts/trigger_windows_build.sh new file mode 100755 index 00000000000..521a365a299 --- /dev/null +++ b/scripts/trigger_windows_build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +_token=$1 + +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