Back to source list
Official
Premium
SonarQube
Sync from SonarQube to any destination
Publisher
cloudquery
Latest version
v1.6.0
Type
Source
Platforms
Date Published
Overview #
The CloudQuery SonarQube source plugin pulls data out of SonarQube and loads it into any supported CloudQuery destination (e.g. PostgreSQL, BigQuery, Snowflake, and more).
Authentication #
In order to fetch information from SonarQube,
cloudquery
needs to be authenticated and configured with valid credentials.
Either user/password or an user token is required for authentication.Plugin Configuration Reference
Example #
This example syncs from SonarQube 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: sonarqube
path: cloudquery/sonarqube
registry: cloudquery
version: "v1.6.0"
tables:
- "*"
destinations: ["postgresql"]
# Learn more about the configuration options at https://cql.ink/sonarqube_source
spec:
# required parameters
base_url: ${SONARQUBE_BASE_URL}
# Either user/password or user_token is required
user: ${SONARQUBE_USER}
password: ${SONARQUBE_PASSWORD}
# optional parameters
# user_token: ${SONARQUBE_USER_TOKEN}
# auth_mode: "token"
# concurrency: 100
SonarQube Spec #
This is the (nested) spec used by the source plugin.
base_url
(string
) (required)URL to used SonarQube instanceconcurrency
(integer
) (optional) (default:100
)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.auth_mode
(enum
) (optional) (default:basic
)Authentication mode to use. Possible values arebasic
andtoken
.user_token
(string
) (optional)User token for SonarQubeuser
(string
) (optional)SonarQube usernamepassword
(string
) (optional)SonarQube password