Nuclos Sonar: SonarCloud, sonar:sonar, SONAR_TOKEN, Java 17, branch, code analysis, coverage, Jenkins. |
Language: Deutsch · English
Static code analysis with SonarCloud – mvn sonar:sonar, SONAR_TOKEN, Java 17 and branch analysis.
On this page |
A Sonar code analysis including coverage is available via the cloud (from v4.2024.13): sonarcloud.io. The analyses are produced by the nightly integration-test CI job for master.
The Sonar settings in the Nuclos pom.xml add the analysis automatically:
mvn sonar:sonar |
The Sonar Maven plugin requires Java 17. An upload requires a permission (environment variable |
SonarCloud can distinguish Git branches. To focus the analysis on the branch changes, the call is extended (e.g. with -Dsonar.branch.name=$GIT_BRANCH, set by Jenkins). Sonar treats such branches as „short-lived“.