Automatic Bitbucket branch creation when new release is added in JIRA

Devendra Rokade October 12, 2017

Is there any way to create new branch automatically in Bitbucket when a new release is created in JIRA

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2017

It is not possible out of the box in JIRA. You will have to write a plugin that listens on the ReleaseCreatedEvent and then creates a branch in Bitbucket using the application link.

Amey Pelapkar October 12, 2017

Thanks Jobin for further direction.

Amey Pelapkar October 18, 2017

Hi Jobin,

I have created a rest api add-on and trying to configure same url as webhook(Release create) but it's throwing error like 

 

2017-10-18 17:47:22,902 httpclient-callbacks:thread-10 WARN anonymous     [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 405 when posting to web hook at 'http://localhost:8080/rest/CreateBranch/1.0/message.json?repository=test&branchFrom=master&branchNameToBeCreated=10109'

 

But when I try same url in browser it's working fine.

Am I doing any mistake here...

Like Francesco Borchetta likes this

Suggest an answer

Log in or Sign up to answer