Skip to content

Instantly share code, notes, and snippets.

@IlyaFinkelshteyn
Created November 15, 2016 09:18
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
$token = '<API_Token>'
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$body = @{
accountName="<Your_account>"
projectSlug="<Your_project_slug>"
branch="<Your_branch>"
commitId="<Your_commit_id>"
}
$body = $body | ConvertTo-Json
Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Body $body -Method POST
@andymac4182
Copy link

Wow. I really hope they could even add this script as a button on the page... Seems fairly simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment