Continuous Deployment Using Bitbucket Connect and Platform.sh

Ori Pekelman
CPO
10 Jun 2015

Today, at AtlasCamp we are incredibly excited to announce the availability of the Platform.sh add-on for Bitbucket Connect.

Starting from today Bitbucket users can in a single step deploy to production any PHP repository. They can start enjoying immediately the unique features of Platform.sh. With a staging/development environment automatically created for every pull request or branch they create on Bitbucket in around 30 seconds.

The integration is totally seamless, and Bitbucket users can now even log-in to Platform.sh using their Bitbucket account.

You can login to your bitbucket account and go to the Bitbucket Add-on Directorychoose the  “deployment” category and directly add the integration.

Screenshot Bitbucket

We like dog-fooding as much as the next guy, and Bitbucket is a perfect match for our company, we have a growing small team of developers (around 15) and our product is composed of many private projects (around 70 private repositories on last count). And we like our tools integrated. We like everything automated.

So when we heard from Atlassian about the upcoming Atlassian Connect for Bitbucket, we were terribly excited.. and today at his AtlasCamp keynote Mike Cannon-Brookes, Co-Founder and Co-Ceo of Atlassian made us the honor of showing our integration : one of only few to be already available..

Platform.sh already had great support for Bitbucket through a webhook, but it got so much better. The new connect API allowed us to implement Single-Sign-On, automatic configuration of webhooks and deployment, feed-back right inside the Bitbucket UI allowing for even larger productivity gains.

The whole thing got implemented really fast, and it was a pleasure working with the Bitbucket engineers to get this out of the door in a couple of weeks. In the coming months we will be adding even more features and a deeper integration.

For Platform.sh users, these are some incredible news, as Bitbucket is already the preferred platform for hosting and managing private PHP projects (with globally more than 3 million developers using Bitbucket). They can continue to use their existing tools and integrations, and get, with zero friction, a robust and integrated hosting solution.

When a developer creates a pull request, he immediately gets a url where he can test just that feature in total isolation. The project manager likes it? It passed CI ? Just push to master, and voilà, its in production. No sysadmin required, no dev-ops overhead.

An elusive bug on production ? in the Bitbucket UI click on “create branch” you will get 30 seconds later a new development environment that is a byte-for-byte copy of production with all of the data in the precise same state. Instead of hacking on production, you can now resolve the bug in an isolated environment. Create a pull request. You can even create from that one a new environment you can run stress-tests on (to ensure the correction did not result in performance regression). Now you can know you can merge to master confidently. A click later its in production.

The Atlassian tool-stack helps teams collaborate efficiently and apply truly agile methodologies. With the Platform.sh continuous deployment and managed workflow features, those teams can evolve from being “release based” to applying continuous deployment methodologies with no added complexity.