minimum payload for start build webhook

richard's Avatar

richard

21 Oct, 2015 12:59 PM

Hi,

What is the minimum payload that I should send to start a new build of a specific branch? We are using Mercurial with SCM Manager and the payload SCM Manager is sending is not supported by AppVeyor (it just starts a new build of the default branch).

I couldn't find documentation for the payload other than https://github.com/appveyor/webhooks/blob/master/mercurial/mercurial-changegroup.rb

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2015 05:04 PM

    Feodor Fitsner's Avatar

    HI Richard,

    This is it: https://gist.github.com/FeodorFitsner/f5b8b0b441aad6483eb3

    Please let me know if you have any questions.

  2. 2 Posted by richard on 22 Oct, 2015 08:19 AM

    richard's Avatar

    Thanks!

    Is it necessary to include the appveyor.yml contents? Can't AppVeyor fetch it later from the when the repository is loaded? I don't have access to the appveyor.yml file in the SCM webhook.

  3. Support Staff 3 Posted by Feodor Fitsner on 22 Oct, 2015 04:48 PM

    Feodor Fitsner's Avatar

    It can't. The idea behind appveyor.yml is to be able to fetch this particular file from repo at specific revision without cloning entire repository. This is possible with APIs provided by GitHub, BitBucket, VSO. Creating a new build is a 2-step process: 1) fetch appveyor.yml with build (jobs) configuration and 2) create and start build jobs. As far as I know Mercurial doesn't allow fetching a single file from the repo.

  4. 4 Posted by richard on 22 Oct, 2015 05:00 PM

    richard's Avatar

    Ok, I understand now how it works.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac