This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow. I really hope they could even add this script as a button on the page... Seems fairly simple