Revision f4a3400a9cd55c766b5a326ca30d1c23664f1a23 authored by Garrett Guillotte on 11 October 2022, 18:39:52 UTC, committed by GitHub on 11 October 2022, 18:39:52 UTC
1 parent abd7b7d
Raw File
trigger_windows_build.sh
#!/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
back to top