SonarQube version: 8.5.1.38104
Plugin: org.sonarqube version 3.0 for gradle
Every time I start a new project and run Sonarqube, it goes to my localhost server with the same name and key and I can’t change it.
I want to fix not only the project but the problem itself, as the projectKey and projectName are from an older project, which has nothing to do with this one (I used the sonarqube-scanner for this old project, it was a node + Angular project).
I have tried to delete and redownload Sonarqube as a zip, changing the project folder, creating the following Gradle entry:
sonarqube{
properties {
property "sonar.projectName", "newName"
property "sonar.projectKey", "newName"
}
}
Creating a sonar-project.properties with the configuration:
sonar.projectKey=newName
sonar.projectName=newName
I have deleted the old project as well.
I have a project created by someone else, where this problem has not happened, it’s an Angular + node project;
There are other people in this project, and their Sonarqube work without any of the above changes or implementation, Sonarqube get the information from the project setting without a problem.
This is the server backlog:
peasyparser is the old project and botersureapi is the new one.
Scanner Context: peasyparser [Project Analysis]
SonarQube plugins:
- Python Code Quality and Security 3.1.0.7619 (python)
- CSS Code Quality and Security 1.3.1.1642 (cssfamily)
- JaCoCo 1.1.0.898 (jacoco)
- SonarGo 1.6.0.719 (go)
- SonarKotlin 1.5.0.315 (kotlin)
- JavaScript/TypeScript Code Quality and Security 6.5.0.13383 (javascript)
- SonarRuby 1.5.0.315 (ruby)
- SonarScala 1.5.0.315 (sonarscala)
- C# Code Quality and Security 8.13.1.21947 (csharp)
- Java Code Quality and Security 6.8.0.23379 (java)
- SonarHTML 3.2.0.2082 (web)
- SonarFlex 2.5.1.1831 (flex)
- SonarXML 2.0.1.2020 (xml)
- PHP Code Quality and Security 3.9.0.6331 (php)
- VB.NET Code Quality and Security 8.13.1.21947 (vbnet)
Global server settings:
- sonar.core.id=BF41A1F2-AXXDC9u7VZq7yGT3MZNE
- sonar.core.startTime=2020-11-13T17:34:34-0300
Project server settings:
Project scanner properties:
- sonar.binaries=I:\Projetos\New folder\botersure\botersureapi\build\classes\java\main
- sonar.coverage.exclusions=**/*.js,src/main.ts,src/polyfills.ts,**/*environment*.ts,**/*module.ts
- sonar.coverage.jacoco.xmlReportPaths=I:\Projetos\New folder\botersure\botersureapi\build\reports\jacoco\test\jacocoTestReport.xml
- sonar.exclusions=**/node_modules/**
- sonar.host.url=http://localhost:9000
- sonar.jacoco.reportPath=I:\Projetos\New folder\botersure\botersureapi\build\jacoco\test.exec
- sonar.jacoco.reportPaths=I:\Projetos\New folder\botersure\botersureapi\build\jacoco\test.exec
- sonar.java.binaries=I:\Projetos\New folder\botersure\botersureapi\build\classes\java\main
- sonar.java.libraries=C:\Users\arche\.gradle\caches\modules-2\files-2.1\io.jsonwebtoken\jjwt-api\0.11.1\4a94011bfb3021579c93274fa12533b17b9326c0\jjwt-api-0.11.1.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.json\json\20200518\41a767de4bde8f01d53856b905c49b2db8862f13\json-20200518.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-mail\2.3.4.RELEASE\f64c8dab2275899ff139f57ffa5cbe5f1353965d\spring-boot-starter-mail-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-security\2.3.4.RELEASE\c7cba64ec709aab550dbbeb9a97acc50d88f6f70\spring-boot-starter-security-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-rest\2.3.4.RELEASE\e056cd301c9a30460c15dc3454cca3669bf777b5\spring-boot-starter-data-rest-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.3.4.RELEA...
- sonar.java.source=11
- sonar.java.target=11
- sonar.java.test.binaries=I:\Projetos\New folder\botersure\botersureapi\build\classes\java\test
- sonar.java.test.libraries=I:\Projetos\New folder\botersure\botersureapi\build\classes\java\main,I:\Projetos\New folder\botersure\botersureapi\build\resources\main,C:\Users\arche\.gradle\caches\modules-2\files-2.1\io.jsonwebtoken\jjwt-api\0.11.1\4a94011bfb3021579c93274fa12533b17b9326c0\jjwt-api-0.11.1.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.json\json\20200518\41a767de4bde8f01d53856b905c49b2db8862f13\json-20200518.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-mail\2.3.4.RELEASE\f64c8dab2275899ff139f57ffa5cbe5f1353965d\spring-boot-starter-mail-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-security\2.3.4.RELEASE\c7cba64ec709aab550dbbeb9a97acc50d88f6f70\spring-boot-starter-security-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-rest\2.3.4.RELEASE\e056cd301c9a30460c15dc3454cca3669bf777b5\spring-boot-starter-d...
- sonar.javascript.lcov.reportPaths=coverage/peasyparser/lcov.info
- sonar.junit.reportPaths=I:\Projetos\New folder\botersure\botersureapi\build\test-results\test
- sonar.junit.reportsPath=I:\Projetos\New folder\botersure\botersureapi\build\test-results\test
- sonar.libraries=C:\Users\arche\.gradle\caches\modules-2\files-2.1\io.jsonwebtoken\jjwt-api\0.11.1\4a94011bfb3021579c93274fa12533b17b9326c0\jjwt-api-0.11.1.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.json\json\20200518\41a767de4bde8f01d53856b905c49b2db8862f13\json-20200518.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-mail\2.3.4.RELEASE\f64c8dab2275899ff139f57ffa5cbe5f1353965d\spring-boot-starter-mail-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-security\2.3.4.RELEASE\c7cba64ec709aab550dbbeb9a97acc50d88f6f70\spring-boot-starter-security-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-rest\2.3.4.RELEASE\e056cd301c9a30460c15dc3454cca3669bf777b5\spring-boot-starter-data-rest-2.3.4.RELEASE.jar,C:\Users\arche\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.3.4.RELEA...
- sonar.login=******
- sonar.password=******
- sonar.projectBaseDir=I:\Projetos\New folder\botersure\botersureapi
- sonar.projectKey=peasyparser
- sonar.projectName=peasyparser
- sonar.projectVersion=0.0.1-SNAPSHOT
- sonar.scanner.app=ScannerGradle
- sonar.scanner.appVersion=3.0-SNAPSHOT/6.6.1
- sonar.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.surefire.reportsPath=I:\Projetos\New folder\botersure\botersureapi\build\test-results\test
- sonar.test.inclusions=**/*.spec.ts,**/*test.ts, npm test
- sonar.tests=src
- sonar.working.directory=I:\Projetos\New folder\botersure\botersureapi\build\sonar