Skip to main content

SonarQube webhook-action plugin for Imbi

Project description

imbi-plugin-sonarqube

SonarQube webhook-action plugin for Imbi.

The plugin registers a sonarqube entry in the Imbi plugin registry (plugin type: webhook). When a SonarQube webhook arrives at imbi-gateway and a matching WebhookRule dispatches to imbi_plugin_sonarqube.actions.update_project_from_webhook, the handler:

  1. Reads the metric→JSONPointer mapping from WebhookRule.handler_config.
  2. Fetches /api/measures/component from SonarQube using the plugin's stored API token and the ThirdPartyService.api_endpoint.
  3. Patches the matched Imbi project's facts.

Configuration

Operators attach a sonarqube plugin instance to the SonarQube ThirdPartyService and store the SonarQube API token in the plugin's encrypted credentials.

A typical webhook rule:

Handler: imbi_plugin_sonarqube.actions.update_project_from_webhook
Filter:  /branch/is_main==true
Config:  [
           {"metric": "coverage", "path": "/test_coverage"},
           {"metric": "ncloc",    "path": "/lines_of_code"}
         ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imbi_plugin_sonarqube-2.9.1.tar.gz (93.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imbi_plugin_sonarqube-2.9.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file imbi_plugin_sonarqube-2.9.1.tar.gz.

File metadata

  • Download URL: imbi_plugin_sonarqube-2.9.1.tar.gz
  • Upload date:
  • Size: 93.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imbi_plugin_sonarqube-2.9.1.tar.gz
Algorithm Hash digest
SHA256 d34d2be5c3bc54e030ceb45c81f7aee16bc19b14b94fa27e246be1be5c820dc0
MD5 dd64326c8511d6ce9fef6f879b104258
BLAKE2b-256 9d8e23728d679fcffc2f4cdf8cb0a7f67ab3460ce7d97de5a9cfcf2bc2c5bfc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbi_plugin_sonarqube-2.9.1.tar.gz:

Publisher: publish.yml on AWeber-Imbi/imbi-plugin-sonarqube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imbi_plugin_sonarqube-2.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for imbi_plugin_sonarqube-2.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd5347b5eb31ffce5ad31e5866cbb2b7b093b68a28e597e5b0b52cb806cb311
MD5 5efd21efc3d1c048ea45cb5eb2b61ce7
BLAKE2b-256 4bc7a395a3f1cda973f3afe54ded6081639472c6967a44907acd5aaf2ab60252

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbi_plugin_sonarqube-2.9.1-py3-none-any.whl:

Publisher: publish.yml on AWeber-Imbi/imbi-plugin-sonarqube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page