Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Bitbucket Cloud integration with Jenkins?

As happens to many of us, we continue to work on a Server or Data Center, but in the coming months we will migrate to the Cloud.

Does anyone have Bitbucket Cloud with Jenkins?

I don't see any information about it, and this question is very important before Cloud migration.

Thanks in advance,

5 answers

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 02, 2022

Hello @Iván Muñoz Martínez ,

Welcome to Atlassian Community!

It's definitely possible to integrate Bitbucket Cloud with your Jenkins instance, and this is done through a plugin developed by Jenkins, which you can check in the following URL :

Essentially, this plugin relies on bitbucket webhooks to receive the events that happen in your repository, such as a new push, to then trigger an event in your Jenkins instance.

You are also welcome to take a look at the following article with step-by-step instructions on how to set up this integration : 

Let me know in case you have any questions.

Thank you, @Iván Muñoz Martínez .

Kind regards,

Patrik S

Hello @Patrik S ,

Thanks for the information!

Is it possible to do without webhooks if we don't want to expose our server to the internet?

I'd be happy with a polling solution on my end if it doesn't mean I need to make the server available to external traffic.

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 28, 2023

Hello @Michael Dinsmore ,

It's also possible to configure your Jenkins to use the pooling mechanism that would fetch the repository at a given frequency.

The downside of it is that depending on how many repositories you have and how frequently you do the pooling, you might hit the Bitbucket Cloud API requests limits. I would also suggest taking a look at the article API rate limiting and Jenkins SCM polling which explains how Jenkins SCM works and how it can hit the API limits.

Than you, @Michael Dinsmore !

Patrik S

Like Michael Dinsmore likes this

@Patrik S - I was curious if the new Connect feature is something that could allow me to securely connect?  I'm referring to - https://developer.atlassian.com/cloud/jira/platform/getting-started-with-connect/

 

Is there any BitBucket/Jenkins specific instructions available?

 

thanks,

Mike

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 12, 2023

Hello @Michael Dinsmore ,

The Connect framework is designed to build apps that can connect with the Atlassian Applications UI and your own application set. It's usually used to connect Cloud to Cloud applications/services. Unfortunately, I'm not aware of any existing Jenkins plugin that uses the Connect framework.

Thank you, Mike.

@Michael Dinsmore I ran into the same issue of how to integrate our internal tools without exposing them to the internet. So depending on how your networking team has their security set up, I have found that Atlassian suggests whitelisting all of their IPs and domain. 

Here is the answer I got back from Atlassian:

Since the Atlassian Cloud applications are all web-based, to ensure our apps, third-party apps that run on our products, and any services required for the correct functioning of our ecosystem need to be al;lowed into your network firewalls, proxy, any other network-protection mechanisms you may have in place. You can look at our document IP addresses and domains for Atlassian cloud products where you can see all the IPs and domains that need to be allowed in your network. This is usually done by the infrastructure team/network admins in your organization.

 

And here is the link for Bitbucket specific whitelisting IPs 

Bitbucket IP Whitelist

Thanks @Nicholas Ayala -- I had seen that but was thinking (hoping?) there was an easier way.  I would need to set up a process to dynamically get that list and then have it generate a CloudFormation script that defines a Security Group for AWS to then apply to a set of resources within our VPC in AWS.   

That seems like a lot of work (development, testing, maintenance) that I'd rather avoid... but maybe there's no other options.

1 vote
jennifer_dempsey_Appfire
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jun 21, 2023

Thank you for your continued interest in Webhook to Jenkins for Bitbucket Cloud! I'm pleased to announce that the Cloud version of this app is now available in the Atlassian Marketplace and is free until the end of the year! 

Try it now and let us know what you think!

If you have further questions or need assistance with installing or configuring the app, please reach out to me at Jennifer.dempsey@appfire.com and I'd be happy to put you in touch with our Product Manager or Support team.

Cheers,
Jennifer

0 votes
jennifer_dempsey_Appfire
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Feb 15, 2023 • edited

Also, as Jamie mentioned previously, we'll be releasing the Cloud version of Webhook to Jenkins for Bitbucket in the next 1-2 months. Our Product Manager would be happy to answer any questions you might have about planning your cloud migration. Please feel free to email me at Jennifer.Dempsey@appfire.com if you'd like us to help you explore your options.

I'm going to add this link here, as since bitbucket cloud have ended support for passwords, some of the information in this post is no longer relevant.

If the link is broken, here is the test:

What this means is that Atlassian passwords will only let you interactively log into Bitbucket (e.g. via the Bitbucket.org website in a browser) as well as other Atlassian products.

If you'd like to use the API or Git over HTTPS you can still do so, you just need to create a new app password. It's really easy to do in the UI.

What this means is you'll have 2 (or more) passwords:

1. Your Atlassian password which signs you into all Atlassian products.

2. A Bitbucket-specific app password that lets you interact with the API or with Git.

N. You can create however many app passwords you want with differing levels of access (scope).

Using an app password
An app password is a substitute password for the user account where you configure it, so you simply use it when authenticating with Bitbucket:

username: your normal Bitbucket username (not your email address)

password: the app password.

0 votes
Jamie Esker {Appfire}
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jul 26, 2022

Hi Iván, 

Jamie here with Appfire! Our powerful tool, Webhook to Jenkins for Bitbucket, is currently only available for Server and DC, but we are in the process of scoping feasibility of a cloud version. We are hoping to add it to our roadmap in the very near future. I wanted to see if you would be open to speaking with our Product Manager so we can address needs you may have while planning your cloud migration. If so, schedule some time, or let us know if there is a certain time that works best for you. 

Cheers, 

Jamie, Product Marketing Manager

Hello @Jamie Esker {Appfire} ,

Thanks for the information, but we are not sure yet if we will migrate Bitbucket to the Atlassian Cloud.

Like # people like this

@Jamie Esker {Appfire} is there estimated delivery date for webhook cloud version?

Jamie Esker {Appfire}
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Oct 13, 2022

@inemerovsky We will have a version available before the end of the year. We are looking for Beta program participants if this is something of interest to you. You can email me at Jamie.esker@appfire.com and I can get you connected with the right people. Thank you!

Like # people like this
JoannaYurdal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Nov 28, 2023

Hi,
I am also working on integrating Bitbucket cloud with local Jenkins and the Bitbucket server Integration could not be used, nor the webhooks expecting public IP for Jenkins. Is there any suggested solution ( or will there be in the near future)?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events