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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,715
Community Members
 
Community Events
176
Community Groups

How to use/integrate Bitbucket with Github Actions

We do have a setup of hosting Code in Bitbucket and building it using Jenkins. We would like to get rid of Jenkins and move to Azure DevOps or Github Enterprise but keep the Repositories in Bitbucket. I can find documentation on how to integrate Bitbucket into Azure DevOps Pipelines but I cannot find any documentation on how to use Github Actions to do the same.

I assume it should be feasable by defining webhooks in Bitbucket to trigger Github Actions. Did anybody already do this? Is this possible? Is there a documentation somewehere out there?

Thanks
Thimo

1 answer

0 votes
Stefan Salzl Community Leader Mar 16, 2022

Hi @Thimo König ,

first, thb: I´m not proficient with Github Enterprise (just github cloud) but as I got it those are 2 completly different things. 

What is the requirement behind that? Why should source code be exchanged between 2 systems when the functionality could be implemented in either 1 of them (more likely even easier and more reliable).

Personally I am a BIG fan of github actions (one reason I chose github). If bitbucket is a hard requirement I would stick to pipelines (or to something that has kind of native integration like bamboo).

Best
Stefan

Hi @Stefan Salzl ,

the requirement is to have a smooth migration path. The objective is to move away the current Bitbucket and Jenkins setup and to use github only. The first step would be to move the build and then later the repository too.

Github Enterprise is not that different as you think. Basically it is the github but running in an OnPrem DataCenter rather then the cloud. So from a feature perspective they are absolutly comparable.

In the meanwhile I guess I found an option. The problem seems to be that github actions are way more integrated into the version control system. Seems like the best approach would be to automatically mirror the bitbucket repo to github so actions could be used. Any ideas/comments on this approach?

Stefan Salzl Community Leader Mar 23, 2022

Hi @Thimo König 

I disucessed with some of my colleagues and did a small research on that topic. I just can come up with 2 things/links describing the mirroring of bitbucket to github. Therefore I guess this can be done. I just don´t have any experience with but thought it might be interesting for to give it a shot:

it seems this is native git:
https://www.basvanbeek.nl/linux/how-to-mirror-bitbucket-repository-to-github/

the following is a plugin from atlassian marketplace:
https://marketplace.atlassian.com/apps/1211351/repository-mirror-plugin-for-bitbucket?tab=overview&hosting=server

 

Looking forward to your feedback or also info if you already found a solution and if so: which one.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events