Project

General

Profile

Feature #4211

Updated by Daniel D over 7 years ago

> 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 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 > <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.

Back