Uploaded image for project: 'SonarQube Scanner for Jenkins'
  1. SonarQube Scanner for Jenkins
  2. SONARJNKNS-292

Branch and PR properties are automatically set when appropriate

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Like we do for the Travis Add-on or the VSTS tasks, Jenkins users would expect our plugin to feed the branch and PR properties automatically when it's appropriate - in order to not have to learn them.

      To get the information, we could rely on https://jenkins.io/doc/book/pipeline/multibranch/#additional-environment-variables then pass them to the scanner.

      That should be fairly easy with the SONAR_SCANNER_PARAMS environment variable.

      Obviously, it should still be possible to force them - which is possible when using CLI params.

      Seems there are some standard variables provided by this plugin:
      https://github.com/jenkinsci/github-branch-source-plugin
      CHANGE_ID is documented here:
      https://jenkins.io/doc/book/pipeline/multibranch/

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                fabrice.bellingard Fabrice Bellingard
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: