Must-share information (formatted with Markdown):
- Versions
Sonar Dev Edition 8.5.1.38104
** Gitlab 13.5.3 (eaa194f15e6)
** Jenkins Jenkins 2.263.1 - I am evaluating the branch analysis functionality and what it to report new Bugs etc
- I Set-Up everything according to: https://docs.sonarqube.org/latest/analysis/jenkins/#header-3
Analysis is running for the branches/merge requests and the pull request decoration in gitlab works.
But the Page in sonar is empty and no code is shown:
Jenkins Settings:
PipelineScript:
stage('git') {
git credentialsId: '6d936a5f-ca5b-428a-a33a-44402899e4f9', url: 'git@gitlab.de.ebpgroup.corp:paussb/PAUSS-B.git'
}
lock(quantity: 1, resource: 'sonar-paussb') {
stage('SonarQube Scan') {
withSonarQubeEnv('Sonar-DevEdition') {
withMaven(jdk: 'amazon-coretto-jdk8-latest', maven: 'Apache Maven latest', options: [artifactsPublisher(disabled: true)]) {
bat 'mvn -P coverage -Djavafx.verbose=true -Dprism.verbose=true -Djavax.persistence.jdbc.server=paussb-jenkins-sonar -Dmaven.test.failure.ignore=true clean verify sonar:sonar'
} // SonarQube taskId is automatically attached to the pipeline context
}
}
}
cleanWs()
From the Log:
[INFO] ------------- Run sensors on project
[INFO] Sensor Zero Coverage Sensor
[INFO] Sensor Zero Coverage Sensor (done) | time=78ms
[INFO] Sensor Java CPD Block Indexer
[INFO] Sensor Java CPD Block Indexer (done) | time=2384ms
[INFO] CPD Executor 723 files had no CPD blocks
[INFO] CPD Executor Calculating CPD for 2551 files
[INFO] CPD Executor CPD calculation finished (done) | time=1135ms
[INFO] SCM writing changed lines
[INFO] SCM writing changed lines (done) | time=12ms
[INFO] Analysis report generated in 1416ms, dir size=3 MB
[INFO] Analysis report compressed in 3079ms, zip size=3 MB
[INFO] Analysis report uploaded in 411ms
[INFO] ANALYSIS SUCCESSFUL, you can browse http://sonar-dev.de.ebpgroup.corp/dashboard?id=de.ebp.paussb%3Apauss-b-parent&pullRequest=120
[INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[INFO] More about the report processing at http://sonar-dev.de.ebpgroup.corp/api/ce/task?id=AXZBo0R8BgIQrzQ3Al8f
[INFO] Analysis total time: 9:58.943 s