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

v2.0.2

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 #

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
  path: cloudquery/bitbucket
  version: "v2.0.2"
  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. The username value should be the one from your account settings here.

Example #

kind: source
spec:
  name: bitbucket
  path: cloudquery/bitbucket
  version: "v2.0.2"
  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.



© 2024 CloudQuery, Inc. All rights reserved.