We are moving from Bitbucket Server to Cloud and would like to know if is there a way to add buttons from a Pull Request to trigger events in Jenkins.
I know that, as discussed here and in this video, when there is an event (like a developer pushing code to the repository), by using WebHooks, bitbucket notifies Jenkins about that event and a build is triggered. We already have that in place and is working fine.
The point is that from a Pull Request, instead of using the "by default" Merge button in Bitbucket Cloud:
we would like to continue working in the same way that for Bitbucket Server, which is to add some buttons in the Pull Request ("Delegate Merge" or "Launch Jenkins Build") to notify Jenkins to run a Jenkins Pipeline that we have in a ci library in groovy (that apart of doing the delegate merge, builds the project, run the tests, generate and push a docker images and increase the VERSION file).
Until now we achieved that by using the pull-request-notifier-for-bitbucket plugin, but it is not supported in Bitbucket Cloud.
Is there any way or workaround to notify Jenkins for running specific methods from a Pull Request?
Thanks in advance
Hi @Ginés Sanchez,
I think one option would be for you to build a simple addon for that? Either using Forge or Connect.
Otherwise, it should be quite simple to add support for that on Flowie, our addon for Bitbucket cloud that helps implementing workflows. I'd be keen to understand better your workflow and assist on implementing this using Flowie. If you are interested you can get in touch via support@flowie.app.
Regards,
Renato
Thanks for your quick response @Saxea _Flowie_
Going to send a request for developing this, but it is basically to have the same functionality we had in pull-request-notifier-for-bitbucket plugin.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.