Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add buttons to trigger events to Jenkins server

Hello!

We have bitbucket server v6.10.8 and would like to do the upgrade to 7.6.

The point is as part of the upgrade we found that one of the plugins we use has been deprecated, so after raising a defect and not getting any response we are searching for an alternative.

 

In particular, what we need is to add some customized buttons in a Pull Request view. Now, by using the deprecated plugin we were able to configure some additional buttons like "Launch Jenkins Build" or "Delegate Merge" to do POST http requests to Jenkins (as Jenkins is in charge of all that tasks).

 

Selection_459.png

As that plugin seems is not going to be supported anymore, is there any alternative to achieve this?

Thank you very much in advance.

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Ginés Sanchez and welcome to the community. If you would like to create a new plugin or add missing support to the existing plugin, you can use Client-Side Extensions in Bitbucket 7.x:

https://developer.atlassian.com/server/framework/clientside-extensions/guides/introduction/

The plugin point you will have to extend is called "bitbucket.ui.pullrequest.action". You can find an example code here: https://bitbucket.org/atlassianlabs/bitbucket-client-side-extensions-template/src/master/src/main/my-app/extensions/pull-request/action-extension.js

Feel free to check the developer community if you want to ask more questions about building plugins for Bitbucket:

https://community.developer.atlassian.com/c/bitbucket-development/12

Thanks,

Maciej Adamczak
Atlassian Developer

Thanks Maciej, will try to do that.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.10.8
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,444 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you