Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74901

Support for SonarQube Branch Name in InfluxDB Plugin

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • influxdb-plugin
    • None

      Description 

      This feature introduces support for the SONAR_BRANCH_NAME environment variable in the SonarQube integration within the InfluxDB plugin. It allows users to include branch-specific metrics and issues in the generated SonarQube URLs, ensuring precise analysis for multi-branch pipelines.

      I have created a PR : https://github.com/jenkinsci/influxdb-plugin/pull/182

      Functionality Added:

      • Updated setSonarDetails to dynamically construct SonarQube URLs, including the branch parameter when SONAR_BRANCH_NAME is set.
      • Improved logging to show the branch and host being used.

      Testing and Validation:

      • Validated the URLs generated for metrics and issues with both branch and default configurations.

      Benefits:

      Enhanced flexibility for branch-specific SonarQube analysis.

      Impact Analysis:

      This change is backward-compatible and does not affect existing functionality unless the SONAR_BRANCH_NAME variable is explicitly defined. It improves the usability of the plugin in multi-branch setups.

      Requested Action:

      Review and merge the changes.

            aleksisimell Aleksi Simell
            nathanhayoun Nathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: