- versions used (SonarQube, Scanner, Plugin, and any relevant extension)
- SonarQube: 7.9.2.30863
- SonarQube Scanner 4.2.0.1873
- Java 1.8.0_275 Private Build (64-bit)
- build-wrapper, version 6.6 (linux-x86)
Plugins: C/ C++/ Objective-C
Description:
OnPrem Sonarqube (Developer Edition), we have two instances one for Prod and another for DEV.
Prod - One Million lines of code.
Dev - 100K lines of code.
Sonarqube scan was successful from Jenkins (CICD tool) but when we initially published the report to Dev Sonar it errors out "The last analysis has failed to not exceed the 100000 lines of code limit allowed by the current license".
And then updated the sonar host property to Prod Sonar (Lines of code limit to 1M) and published again it says (Administration → Projects → Background Tasks) Project analysis cancelled. Both screenshots attached below.
Sonar Properties File:
```
#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here
#----- Default SonarQube server
## Sonar DEV
sonar.host.url=https://sonar.dev.xyz.com
sonar.login=some-login
sonar.projectVersion=1.0
#----- Default SonarQube server
## Sonar Prod
#sonar.host.url=https://sonar.xyz.com
#sonar.login=some-prod-login
#sonar.projectVersion=1.0
## Project properties
sonar.projectKey=org.sonarqube:group-test-libraries
sonar.projectName=Project Scanning for group-test-libraries
sonar.sources=Individual projects path separated by comma
#sonar.branch.name=feature/branch
#sonar.cfamily.cache.enabled=false
## Language specific
sonar.language=c++,c
sonar.cfamily.build-wrapper-output=sonar_bwrapper_output
# sonar.cxx.compiler.charset=UTF-8
## SCM property
sonar.scm.exclusions.disabled=true
# sonar.lang.patterns.c : **/*.c,**/*.h
# sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
#----- Default source code encoding
sonar.sourceEncoding=UTF-8
```
Images:
DEV:
Prod: