Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Created October 21, 2015 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbaxleyiii/402b6bdc83b851a79194 to your computer and use it in GitHub Desktop.
Save jbaxleyiii/402b6bdc83b851a79194 to your computer and use it in GitHub Desktop.
Trigger a deploy from one appveryor project to another
$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