Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9626

New scanner parameter sonar.branch.name

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Branch & PR
    • Labels:
      None

      Description

      The new scanner parameter sonar.branch.name deprecates sonar.branch.

      Scanner should fail if both properties have values.
      sonar.branch.name should also be passed as a characteristic to the report submission webservice.

      The log output should show a WARN message when the deprecated property is used, for example:

      WARN The use of "sonar.branch" is deprecated and replaced by "sonar.branch.name". See https://redirect.sonarsource.com/doc/branches.html.

      The value of the new property should be logged like in user-friendly terms, not the technical "long" and "short", something like this:

      INFO Branch name: branch-2.x, type: long-living
      INFO Branch name: feature, type: short-living

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              janos.gyerik Janos Gyerik
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: