Triggering another project's build without a custom payload via GitHub

Luke's Avatar

Luke

17 Nov, 2017 06:17 PM

I've been attempting to find a way to trigger a build of a single project from a GitHub organization's webhook. The problem is that no matter which webhook I use in attempts to trigger a build, it always fails.

https://ci.appveyor.com/api/git/webhook?id=PROJECTID results in {"message":"Repository type does not match."}

https://ci.appveyor.com/api/github/webhook?id=PROJECTID results in {"message":"Push request and project repositories do not match."}

There's no way to use the AppVeyor API from GitHub without some sort of middleman to intercept and translate. I've used things such as https://github.com/huginn/huginn before, but ideally this wouldn't be needed.

Basically what I'm looking for is a way to trigger a build of the target project's latest source using the already secret URL, without the target project/AppVeyor expecting the payload to match it or anything really as it wouldn't matter. From what I can tell, AppVeyor doesn't have a way of doing this right now.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 18 Nov, 2017 02:13 AM

    Ilya Finkelshteyn's Avatar

    Can you please elaborate your scenario more? Why repository webhooks do not work for you?

  2. Support Staff 2 Posted by Ilya Finkelshte... on 18 Nov, 2017 02:14 AM

    Ilya Finkelshteyn's Avatar

    Maybe you just need this API?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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