Back to plugin list
sonarqube
Official
Premium

SonarQube

This plugin is in preview.

Sync from SonarQube to any destination

Publisher

cloudquery

Latest version

v1.2.1

Type

Source

Platforms
Date Published

Price

Free while in preview

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 sonarqube.yml postgresql.yml

3. Run the sync

CloudQuery sync

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.2.1"
  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 instance
  • concurrency (integer) (optional) (default: 100)
    The best effort maximum number of Goroutines to use. Lower this number to reduce memory usage.
  • auth_mode (enum) (optional) (default: basic)
    Authentication mode to use. Possible values are basic and token.
  • user_token (string) (optional)
    User token for SonarQube
  • user (string) (optional)
    SonarQube username
  • password (string) (optional)
    SonarQube password