Atlantis: BitBucket support

Created on 6 Mar 2018  路  13Comments  路  Source: runatlantis/atlantis

Issue by @nwalke
_Thursday Aug 03, 2017 at 19:23 GMT_
_Migrated from https://github.com/hootsuite/atlantis/issues/99_
_Why was it migrated?_


Would be awesome to have this support BitBucket

feature

Most helpful comment

@aodj @viggeh @arnarg @jkodroff @ilyalavrenov @scboucher @zytek @hussfelt @angry-cellophane @Aerathis @johananl @luvs @jonnydford @MattPumphrey @joestewart @odedpriva @moxli @hubertusa @djenniex @h-svab @JeanFred @frank-bee @leowmjw @adamcrews @kmfk @beatcracker @stibi @nikita-stuzo @teosoft123 @absenth
Bitbucket Cloud and Server are now supported. I'm mentioning you because you 馃憤'd this issue.

For more information:

If you've got any issues please let me know because it's hard to test out everything. You can join our slack channel here or just post on this ticket.

All 13 comments

Comment by @tomasquith
_Monday Aug 07, 2017 at 15:10 GMT_


+1

Comment by @hussfelt
_Tuesday Aug 08, 2017 at 19:42 GMT_


+1

Comment by @lkysow
_Friday Aug 11, 2017 at 04:58 GMT_


Please add a thumbs up reaction so we can keep the comments about the implementation please!

We'll use the reactions to help prioritize.

Comment by @Ashald
_Thursday Sep 14, 2017 at 16:24 GMT_


We would love to have that! Especially, if it will be possible to use it with self-hosted instances as we have one within internal network.

This would be a huge win for our team, as we are currently planning a migration to bitbucket, and are looking to evaluate this tool, but unfortunately as it is not supported we are unable to evaluate this. Is there a timeline on when this is or will be looked at?

Hi @MattPumphrey, I'm going to try and get out an alpha of bitbucket this week. I'll keep you updated and thanks for your interest in Atlantis!

For clarity, would that be about Bitbucket Cloud or Bitbucket Server (aka Stash)? My guess is on the former, but I suggest renaming it for clarity :)

Good question. After looking into it, Bitbucket Cloud uses the 2.0 REST APIs and is deprecating the 1.0 REST APIs while Bitbucket server only uses the 1.0 apis. This means I'll have to develop the two integrations separately.

I think I'll start with Bitbucket Cloud first since there is already a golang client for the 2.0 API. But my intention will be to support both eventually.

+1 Bitbucket is a huge deal for some of us

Atlantis 0.4.3 now supports Bitbucket Cloud (bitbucket.org). To use, run

atlantis server --bitbucket-user $USERNAME --bitbucket-token $TOKEN {other atlantis options}

Bitbucket Server (aka Stash) support is in progress: https://github.com/runatlantis/atlantis/issues/190

@aodj @viggeh @arnarg @jkodroff @ilyalavrenov @scboucher @zytek @hussfelt @angry-cellophane @Aerathis @johananl @luvs @jonnydford @MattPumphrey @joestewart @odedpriva @moxli @hubertusa @djenniex @h-svab @JeanFred @frank-bee @leowmjw @adamcrews @kmfk @beatcracker @stibi @nikita-stuzo @teosoft123 @absenth
Bitbucket Cloud and Server are now supported. I'm mentioning you because you 馃憤'd this issue.

For more information:

If you've got any issues please let me know because it's hard to test out everything. You can join our slack channel here or just post on this ticket.

@lkysow
First of all thank you very much for adding support for bitbucket! 馃

I started messing around and tried to use the --require-approval flag.
As stated on your website here the approvals are quite useless right now.

I have set the required approvals to merge a pull request via the Branch permissions to two and started atlantis with the flag.

If approve a pull request on my own and I am able to run apply (atlantis just checks if there is a single approval), how ever I can not merge the pull requests because I need one more person to approve it.

Can you think of any way to make atlantis check that the required amount of approvals is reached? If this is not supported by bitbucket we should probably contact Atlassian I guess?

Hey moxli, yeah I think I should ignore approvals by the person that created the pull request.

In the future I want to create another apply_requirement which is mergeable. Then you could set up the config as you like it, for example requiring 2 approvers.

I've created #201 to track this issue.

Was this page helpful?
0 / 5 - 0 ratings