tag:help.appveyor.com,2012-11-13:/discussions/questions/2601-indipendent-new-build-webhook
AppVeyor: Discussion
2018-10-19T08:18:00Z
tag:help.appveyor.com,2012-11-13:Comment/40626056
2016-08-29T17:22:02Z
2016-08-29T17:22:52Z
Indipendent New Build webhook?
<div><p>Hello,</p>
<p>You can use REST API for this. Please see below:<br>
<a href="https://www.appveyor.com/docs/api/projects-builds/#start-build-of-branch-most-recent-commit">
https://www.appveyor.com/docs/api/projects-builds/#start-build-of-b...</a><br>
<a href="https://www.appveyor.com/docs/api/projects-builds/#start-build-of-specific-branch-commit">
https://www.appveyor.com/docs/api/projects-builds/#start-build-of-s...</a></p>
<p>Here is PowerShell script example:</p>
<pre>
<code>$token = <your_token>
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$body = @{
accountName = <your_accountName>
projectSlug = <your_projectSlug>
branch = <your_branch>
commitId = <your_commitId>
}
$body = $body | ConvertTo-Json
Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Body $body -Method POST</code>
</pre>
<p>Hope this helps,<br>
Ilya.</p></div>
Ilya Finkelshteyn
tag:help.appveyor.com,2012-11-13:Comment/40626056
2016-09-05T20:13:08Z
2016-09-05T20:13:08Z
Indipendent New Build webhook?
<div><p>Thanks :D</p></div>
marocco2