New feature: Trigger pipelines with webhooks

November 8, 2018

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:

Entering Webhook settingsEntering 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:

Setting up webhook triggerSetting 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
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.

Share:

Alexander Kus

Alexander Kus

Customer Success Manager

A story-teller and conversation-lover, Alexander decided to invest his skills to help his friends at Buddy transform the cold language of patch notes into exciting narratives. Also: an avid gamer, hip-hop DJ, Liverpool FC fan, absentminded husband, and the father of two.