Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24423

Use sonar.branch.target param only when distinct from sonar.branch.name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.1-SNAPSHOT
    • Fix Version/s: 10.2
    • Component/s: Tests
    • Tags:
    • Backlog priority:
      700
    • Sprint:
      DevOps-23

      Description

      It seems that when the target is equal to the branch, the Sonar plugin will reject the use of the sonar.branch.target parameter.
      Add this parameter only when different than the branch (sonar.branch.name).

      [Pipeline] sh
      [nuxeo-master-sonar] Running shell script
      + mvn clean verify sonar:sonar -Dsonar.login=**** -Paddons,distrib,qa,sonar -Dsonar.branch.name=master -Dsonar.branch.target=master
      (...)
      [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project nuxeo-ecm: The main branch must not have a target

      https://docs.sonarqube.org/display/PLUG/Branch+Plugin

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: