minimum payload for start build webhook
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
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
Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2015 05:04 PM
HI Richard,
This is it: https://gist.github.com/FeodorFitsner/f5b8b0b441aad6483eb3
Please let me know if you have any questions.
2 Posted by richard on 22 Oct, 2015 08:19 AM
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.
Support Staff 3 Posted by Feodor Fitsner on 22 Oct, 2015 04:48 PM
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 Posted by richard on 22 Oct, 2015 05:00 PM
Ok, I understand now how it works.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.