Hi,
Our builds stopped working a few days ago. We were reaching the maximum lines allowed by our license. I deleted some old projects from our account and confirmed in the Administration>Billing page that there is now space for more lines.
However, our builds are still failling for new pull-requests. Analysis work for existing branches/pull-requests.
We use Jenkins to trigger a Maven build (Java), with sonar-maven-plugin version 3.6.0.1398.
The repository is hosted in Bitbucket Cloud and our organisation account is linked to the Bitbucket Cloud Team.
I tried deleting the workspace in Jenkins, but the error remains.
Any idea on how to get the new pull-request into SonarCloud so the analysis does not fail?
Thanks!
This is the error we get during the build:
[INFO] ---------------------------< com.elgin:apps >---------------------------
[INFO] Building apps 3.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- sonar-maven-plugin:3.6.0.1398:sonar (default-cli) @ apps ---
[INFO] User cache: /XXXXXXX/.sonar/cache
[INFO] SonarQube version: 8.0.0
[INFO] Default locale: "en_US", source code encoding: "UTF-8"
[INFO] Load global settings
[INFO] Load global settings (done) | time=272ms
[INFO] Server id: 74E9293D-AWHW8ct9-T_TB3XqouNu
[INFO] User cache: /XXXXXXX/.sonar/cache
[INFO] Load/download plugins
[INFO] Load plugins index
[INFO] Load plugins index (done) | time=82ms
[INFO] Load/download plugins (done) | time=186ms
[INFO] Loaded core extensions: developer-scanner
[INFO] Process project properties
[INFO] Execute project builders
[INFO] Execute project builders (done) | time=3ms
[INFO] Project key: elgindevteam_apps
[INFO] Base dir: /XXXXXXX/apps-refactoring_PR-232
[INFO] Working dir: /XXXXXX/apps-refactoring_PR-232/target/sonar
[INFO] Load project settings for component key: 'elgindevteam_apps'
[INFO] Load project settings for component key: 'elgindevteam_apps' (done) | time=72ms
[INFO] Load project branches
[INFO] Load project branches (done) | time=66ms
[INFO] Load projects for organization 'elgindevteam'
[INFO] Load projects for organization 'elgindevteam' (done) | time=294ms
[INFO] Load project pull requests
[INFO] Load project pull requests (done) | time=86ms
[INFO] Load branch configuration
[WARNING] Parameter 'sonar.pullrequest.branch' can be omitted because the project on SonarCloud is linked to the source repository.
[WARNING] Parameter 'sonar.pullrequest.base' can be omitted because the project on SonarCloud is linked to the source repository.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.856 s
[INFO] Finished at: 2019-10-10T13:00:59+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project apps: Could not find the pullrequest with key '232': Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=elgindevteam_apps&pullrequestKey=232 : {"errors":[{"msg":"Not Found"}]} -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException