We are using SonarCloud and our code base has 300K Java and 300K JS line of code.
The java code is written on Java8 but sonar scan is on Java11.
- Jenkins on ECS fargate - We have already tried increasing the memory to its limits 30GB.
- Script to run PR Scanner
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:22.214.171.1244:sonar -Dsonar.projectKey=name -Dsonar.pullrequest.key=$PR_ID -Dsonar.pullrequest.branch=$1 -Dsonar.verbose=true -Dsonar.pullrequest.base=master -Dsonar.pullrequest.provider=GitHub
- Java and JS