Back to source list
Official
Premium
Bitbucket
The CloudQuery Bitbucket plugin pulls data from Bitbucket and loads it into any supported CloudQuery destination
Publisher
cloudquery
Latest version
v2.5.1
Type
Source
Platforms
Date Published
Price per 1M rows
Starting from $15
monthly free quota
1M rows
Set up process #
brew install cloudquery/tap/cloudquery
1. Download CLI and login
2. Create source and destination configs
Plugin configurationOverview #
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.5.1"
tables: ["*"]
destinations: ["postgresql"]
# bitbucket-specific configuration
# Learn more about the configuration options at https://cql.ink/bitbucket_source
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.5.1"
tables: ["*"]
destinations: ["postgresql"]
# bitbucket-specific configuration
spec:
username: "${BITBUCKET_USERNAME}" # required
password: "${BITBUCKET_PASSWORD}" # required
...
Bitbucket Spec #
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.concurrency
(integer
, optional, default:50000
): A best effort maximum number of Go routines to use. Lower this number to reduce memory usage.scheduler
(string
, optional, default:dfs
): The scheduler to use when determining the priority of resources to sync. Supported values aredfs
(depth-first search),round-robin
,shuffle
andshuffle-queue
.For more information about this, see performance tuning.