Spacelift
PrivacyT&Cs
  • 👋Hello, Spacelift!
  • 🚀Getting Started
  • 🌠Main concepts
    • Stack
      • Creating a stack
      • Stack settings
      • Organizing stacks
      • Stack locking
      • Drift detection
    • Configuration
      • Environment
      • Context
      • Runtime configuration
        • YAML reference
    • Run
      • Task
      • Proposed run (preview)
      • Tracked run (deployment)
      • Module test case
      • User-Provided Metadata
      • Run Promotion
      • Pull Request Comments
    • Policy
      • Login policy
      • Access policy
      • Approval policy
      • Initialization policy
      • Plan policy
      • Push policy
      • Task policy
      • Trigger policy
    • Resources
    • Worker pools
    • VCS Agent Pools
  • 🛰️Platforms
    • Terraform
      • Module registry
      • External modules
      • Provider
      • State management
      • Terragrunt
      • Version management
      • Handling .tfvars
      • CLI Configuration
      • Cost Estimation
      • Resource Sanitization
      • Storing Complex Variables
      • Debugging Guide
    • Pulumi
      • Getting started
        • C#
        • Go
        • JavaScript
        • Python
      • State management
      • Version management
    • CloudFormation
      • Getting Started
      • Reference
      • Integrating with SAM
      • Integrating with the serverless framework
    • Kubernetes
      • Getting Started
      • Authenticating
      • Custom Resources
      • Helm
      • Kustomize
  • ⚙️Integrations
    • Audit trail
    • Cloud Integrations
      • Amazon Web Services (AWS)
      • Microsoft Azure
      • Google Cloud Platform (GCP)
    • Source Control
      • GitHub
      • GitLab
      • Azure DevOps
      • Bitbucket Cloud
      • Bitbucket Datacenter/Server
    • Docker
    • GraphQL API
    • Single sign-on
      • GitLab OIDC Setup Guide
      • Okta OIDC Setup Guide
      • OneLogin OIDC Setup Guide
      • Azure AD OIDC Setup Guide
      • AWS IAM Identity SAML 2.0 Setup Guide
    • Slack
    • Webhooks
  • 📖Product
    • Privacy
    • Security
    • Support
      • Statement of Support
    • Disaster Continuity
    • Billing
      • Stripe
      • AWS Marketplace
    • Terms and conditions
    • Refund Policy
  • Cookie Policy
Powered by GitBook
On this page
  • Setting up the integration
  • Unlinking the Integration

Was this helpful?

  1. Integrations
  2. Source Control

Bitbucket Cloud

PreviousAzure DevOpsNextBitbucket Datacenter/Server

Last updated 3 years ago

Was this helpful?

In addition to our out-of-the-box , Spacelift supports using Bitbucket Cloud as the source of code for your and .

Setting up the integration

In order to set up the integration from the Spacelift side, please navigate to the VCS providers section of the admin Settings page, find the Bitbucket Cloud integration and click the Set up button:

This should open a form like this one:

Now you'll have to fill in the Username, which is a username of your Bitbucket Cloud account.

This will give you an app password token which you can put into the App Password field in the integration configuration.

After doing all this you should have all fields filled in.

After saving, you'll receive your webhook endpoint:

For each repository you want to use with Spacelift, you now have to go into its Repository settings -> Webhooks -> Add webhook, and configure the webhook accordingly, by activating Push, Pull Request Created, Pull Request Updated and Pull Request Merged events.

When creating a Stack, you will now be able to choose the Bitbucket Cloud provider and a repository inside of it:

Unlinking the Integration

If you no-longer need the integration, you can remove it via the Unlink button on the VCS settings page.

Please also remember to remove any Spacelift webhooks from your repositories.

In order to get the you'll need to go to the Bitbucket Cloud site and navigate to Personal settings -> App passwords (it's under Access management) -> Create app password. There, you will need to give your new app password a label and give it read access to repositories and pull requests:

The last step is to install the Pull Request Commit Links app to be able to use API. This is done automatically when you go to the commit's details and then click "Pull requests" link.

⚙️
App password
this
integration with GitHub
stacks
modules
VCS providers page
Bitbucket Cloud setup form
App password creation
Created new app password
Filled in Bitbucket Cloud integration form
Configured integration
Webhooks configuration
Commit's details
Stack creation form
VCS providers page