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
- is required by
-
NXP-24011 Move SonarQube pipeline to the source code
- Resolved