Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Webhook to Jenkins - accessing branch_name in Jenkins

Anand Patil August 18, 2018

Hi,

 

I am using Parameterized build hooks to trigger the Jenkins builds by passing the reference to the Repo & branch as $REPO & $branch

I use the branch name to decide whether to build alpha version or beta or production version based on whether its feature/release/master. As the Parameterized build is not supported anymore, so moving to Webhook but looks like there is no way to get the reference to Branch in the Jenkins pipeline script.

I tried few things ,finally thought of posting it here hoping to get help. Any help would be appreciated.

 

Thanks in advance

Anand

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events