Back to plugin list
bitbucket
Official

Bitbucket

The CloudQuery Bitbucket plugin pulls data from Bitbucket and loads it into any supported CloudQuery destination

Publisher

cloudquery

Repositorygithub.com
Latest version

v1.3.0

Type

Source

Platforms
Date Published

Price

Free

Set up process


brew install cloudquery/tap/cloudquery

1. Download CLI and login

See installation options

2. Create source and destination configs

Plugin configuration

cloudquery sync bitbucket.yml postgresql.yml

3. Run the sync

CloudQuery sync

Overview

Bitbucket Source Plugin

The CloudQuery Bitbucket plugin pulls data from Bitbucket and loads it into any supported CloudQuery destination (e.g. PostgreSQL, BigQuery, Snowflake, and more).
The plugin discover all workspaces and repositories in your account and syncs them to the destination.

Example Configuration

This example syncs from Bitbucket to a Postgres destination. The (top level) source spec section is described in the Source Spec Reference.
kind: source
# Common source-plugin configuration
spec:
  name: bitbucket
  registry: docker
  path: ghcr.io/cloudquery/cq-source-bitbucket:v1.3.0
  tables: ["*"]
  destinations: ["postgresql"]
  # bitbucket-specific configuration
  spec:
    username: "${BITBUCKET_USERNAME}" # required
    password: "${BITBUCKET_PASSWORD}" # required

Authentication

In order to fetch information from Bitbucket Cloud, cloudquery needs to authenticate using an app password. Follow the instructions on the Bitbucket website and create a read-only token with account:read, projects:read and repositories:read permissions.

Example

kind: source
spec:
  name: bitbucket
  registry: docker
  path: ghcr.io/cloudquery/cq-source-bitbucket:v1.3.0
  tables: ["*"]
  destinations: ["postgresql"]
  # bitbucket-specific configuration
  spec:
    username: "${BITBUCKET_USERNAME}" # required
    password: "${BITBUCKET_PASSWORD}" # required
  ...

Configuration Reference

This is the (nested) spec used by the Bitbucket source plugin:
  • username (string) (required):
    The Bitbucket username associated with the app password.
  • password (string) (required):
    The Bitbucket password associated with the app password.

Running in a Containerized Environment

To run the Bitbucket plugin in a containerized environment, see the Using CloudQuery Docker Registry Plugins Inside a Containerized Environment guide.


Subscribe to product updates

Be the first to know about new features.