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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is mirroring the git repos to github the only way?
can we not have git action (runnners on cloud or self hosted) directly integrate with bitbucket through webhooks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@pavanraga I guess there might be lot´s of hick-ups between the systems or data that might not be thought of and not considered to be in a webhook as (my personal view) the system and actions/pipelines were not meant to built/used like this.
Why should I use 1 git environment for hosting my code and another git environment to write pipelines to handle the code in the other environment (as 1 and the same environment could do both) ?
This is such a specific question that needs to be called to the vendors. Pesonally I can´t answer this question as there is too much unknown.
Best
Stefan
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.