-
New Feature
-
Resolution: Unresolved
-
Minor
-
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.