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

Drop "sonar.branch" analysis parameter

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      The sonar.branch analysis parameter is deprecated since SonarQube 6.7 (SONAR-9799), and this old way of analyzing branches is advantageously replaced by the proper support for branches and PRs provided with SonarQube DE 6.7+.

      The analysis should now fail with a clear message when the parameter is used so that the main branch is not overridden.
      The message could be:

      The 'sonar.branch' parameter is no longer supported. You should stop using it.
      Branch analysis is available in Developer Edition and above. See https://redirect.sonarsource.com/editions/developer.html for more information.

      The documentation should be updated to stop mentioning this parameter as deprecated.

      On scanner side:

      • fail the analysis when 'sonar.branch" is provided

      On server side:

      • deprecate the 'branch' parameter in the WS api/projects/create

      For now, sonar.branch should still work for SonarCloud analyses.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michal.duda Michal Duda (Inactive)
              Reporter:
              christophe.levis Christophe Levis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: