Skip to main content

Bitbucket

Integrate Bitbucket with Torq to enhance your automated Workflows.

Updated over 2 weeks ago

Bitbucket provides collaboration tools and Git-repository management and collaboration tools for dev teams.

Torq enables quick and easy integration with Bitbucket, so you can automate anything and everything within moments. Torq's public Bitbucket steps include:

  • Generate Bitbucket Access Token

  • Get Repository

  • Get Root Directory Contents

  • List Repository Commits

  • And more...

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

Use Bitbucket steps in Torq

You must be a workspace administrator to browse the workspace settings.

Create an OAuth consumer in Bitbucket

API tokens must have the necessary scopes to access Bitbucket APIs.

  1. Open Bitbucket: Navigate to Settings > Workspace settings and under Apps and features click OAuth consumers.

  2. Create an OAuth consumer: Click Add consumer.

    1. Enter a meaningful name.

    2. Select the relevant permissions.

    3. Click Save.

  3. Copy the client key and client secret: Copy the OAuth consumer's Key and Secret to save them for later. You will need them to create a Bitbucket steps integration in Torq.

Create a Bitbucket steps integration in Torq

  1. Navigate to the integration: Go to Build > Integrations > Steps > Bitbucket and click Add Instance.

  2. Configure the integration:

    1. Give the integration a unique and meaningful name.

    2. Enter the email address of the user who created the API token for the client key.

    3. Paste the Bitbucket client key and client secret that you copied earlier.

  3. Finalize: Click Add.


Templates

Now that you've added your integrations check out these specially crafted templates by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?