Hello
i have an issue while trying to perform a sonar analysis sais:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project XXX: Failed to upload report: closed → [Help 1]
with debug mode, I got:
14:54:38.140 Upload report
[DEBUG] 14:54:38.146 → POST https://sonarqube.xxx.com/api/ce/submit?projectKey=xx&projectName=xx&characteristic=pullRequest%3D7636 (2816287-byte body)
[DEBUG] 14:54:39.562 ← 400 Bad Request https://sonarqube.xx.com/api/ce/submit?projectKey=xx&projectName=xx&characteristic=pullRequest%3D7636 (1416ms, 138-byte body)
the analysis are working fine for branches but only MR not working and also it works perfectly for other project for both MR and branches analysis
could you please help on identifying the issue ?
here is my maven command :
mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.token=$SONAR_TOKEN -Dsonar.java.binaries=target -Dsonar.ws.timeout=300 -Dsonar.pullrequest.branch=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME -Dsonar.pullrequest.key=$CI_MERGE_REQUEST_IID -Dsonar.pullrequest.base=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -s ./settings.xml -Dmaven.repo.local=$GITLAB_MAVEN_REPO_PATH