New feature: Trigger pipelines with webhooks

New feature: Trigger pipelines with webhooks

After a short break, we're back with some freshly baked new features. The first in line is triggering pipeline executions from webhooks, a popular request among DevOps.

This is a sample request we received from one of our users (hi Chris!):

TakeShape will send a webhook to an external service whenever content changes, but I can't seem to find a way for Buddy to listen for and respond to these web hooks. I see "Webhooks to external services", but what I'm looking for is a similar "Webhooks FROM external services." Does this exist? Do I have to use the API to make this work?

Yes, until now the API was the only way to make it work. However, this method required sending a POST payload with specific parameters what should be run and when, which drastically reduced the scope of application.

With this week's release, we add webhook URLs support to Buddy. The option is available in the right column on the pipeline details view:

Image loading...Entering Webhook settings

Simply click the link and copy the URL to your webhook. By default, every request will trigger an execution to the HEAD revision of the branch:

Image loading...Setting up webhook trigger

If you wish, you can customize the web hook with a couple of parameters:

  • Run to revision: revision=HASH_ID
  • Upload from scratch: fromScratch=1
  • Clear cache: clearCache=1
  • Comment: comment=my%20comment
  • Branch (for wildcard pipeline): branch=dev
  • Tag (for wildcard pipeline): tag=mytag
  • Custom ENV variables: myenv=value
Warning
Buddy is 100% customer driven. If there’s a feature or integration you miss, let us know in the comments below or directly at support@buddy.works.
Jarek Dylewski

Jarek Dylewski

Customer Support

A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.

Nov 8th 2018
Share