Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Add buttons to trigger events to Jenkins server

Ginés Sanchez May 18, 2021

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
Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 18, 2021

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

Ginés Sanchez May 24, 2021

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
AUG Leaders

Atlassian Community Events