Bitbucket can be integrated as the source of truth for your code and allows you to keep your existing Bitbucket workflows.
Features
- Creating a new Platform.sh environment when a branch is created or a pull request is opened in Bitbucket
- Rebuilding the environment when new code is pushed to Bitbucket.
- Deleting the environment when a pull request is merged.
Requirements
-
Platform.sh project admin permission
- Bitbucket Cloud or a self-hosted Bitbucket Server
- For Bitbucket Cloud: an OAuth consumer
- For Bitbucket Server: an access token
-
Bitbucket Admin user permissions to add a webhook to Bitbucket repository
Setup
Setup using the CLI
platform integration:add
Setup In the Console
-
Select the project where you want to enable the integration.
-
Click Settings.
-
Under Project settings, click Integrations.
-
Click + Add integration.
-
Under Bitbucket (for Bitbucket Cloud) / Bitbucket Server (for self hosted), click + Add.
-
Complete the form
-
Check that the other options match what you want.
-
Click Add integration.
For more details of configuration and installation refer to our Integrate with Bitbucket documentation