Project

General

Profile

Actions

Feature #4211

open

[ce, ee] increase webhook flexibility

Added by Daniel D about 8 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
31.08.2016
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:

Description

How would I go about if I wanted the webhook being able to trigger a certain branch to build in Jenkins? I'm using Pipeline/Pipeline Multibranch, but regardles, it'd require something like:

http://server/myjenkinsproject/job/< BRANCHNAME >/build

Does Rhodecode provide any environment variables through the webhook setup in the UI that I could pass in for < BRANCHNAME > or is this something I'd have to hand code as an extension?

This feature was requested in community-discussion.

From what I can tell, if we allow template variables in the url, which get interpolated with the event dict, we can get this functionality

eg. http://server/{event['branch']}/build

The problem is (in this particular use case) that there can be multiple branches per push - which complicates matters, not sure how to get around this.

Actions

Also available in: Atom PDF