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
atlassian, bitbucket, ci/cd workflows, scale ci cd, bitbucket webinar, devops pipeline, continuous integration, continuous delivery, atlassian learning, software automation, developer tools, build and deploy, pipeline optimization, atlassian community

Scale CI/CD workflows faster with Bitbucket Pipelines 🪣

Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.

Register today
AUG Leaders

Atlassian Community Events