Created
October 21, 2015 03:43
-
-
Save jbaxleyiii/402b6bdc83b851a79194 to your computer and use it in GitHub Desktop.
Trigger a deploy from one appveryor project to another
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 = '' | |
$headers = @{ "Authorization" = "Bearer $token"} | |
$body = @{ | |
accountName = "NewSpring"; | |
projectSlug = "rock"; | |
branch = $ENV:APPVEYOR_REPO_BRANCH | |
} | |
$bodyAsJson = $body | ConvertTo-json | |
Invoke-Restmethod -uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Method Post -Body $bodyAsjson -ContentType "application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment