odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
795 stars 259 forks source link

Update sonarcloud scan to use Java 11 #5323

Closed planetf1 closed 3 years ago

planetf1 commented 3 years ago

Currently our sonarcloud.io scan is run via azure pipelines. It has not worked this year - see https://dev.azure.com/ODPi/Egeria/_build/results?buildId=16764&view=logs&j=f38f3889-b668-5b4c-0263-c9548e3b1185&t=4606f1f8-98d1-5773-4e52-dcf0da0b4452 This is due to:

/usr/bin/mvn -f /home/vsts/work/1/s/pom.xml --batch-mode --quiet -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dsonar -Dsonar.projectKey=odpi_egeria -Dsonar.organization=odpi -Dsonar.projectName=Egeria -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=*** sonar:sonar
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project egeria: 
[ERROR] 
[ERROR] The version of Java (1.8.0_292) you have used to run this analysis is deprecated and we stopped accepting it.
[ERROR] Please update to at least Java 11. You can find more information here: https://sonarcloud.io/documentation/upcoming/
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

We intend to move to Java 11 shortly, but as the sonarcloud scan is currently distinct from our builds that produce packages/run tests, I will update just that to Java 11. (in future some merging could improve performance)

planetf1 commented 3 years ago

this has been implemented

planetf1 commented 3 years ago

Re-opening.

The first scan after the change 3 days ago ran perfectly and produced an updated, believable scan.

However the last 3 scans since (this week) are showing 0 bugs. Something is not therefore working correctly in the scan pipeline

planetf1 commented 3 years ago

The sonar pipeline is running on azure at https://dev.azure.com/ODPi/Egeria/_build?definitionId=20 The last run at https://dev.azure.com/ODPi/Egeria/_build/results?buildId=16796&view=logs&j=f38f3889-b668-5b4c-0263-c9548e3b1185&t=242f87a8-a9f8-5788-834f-5f21a783b2c2 is not showing anything unusual

planetf1 commented 3 years ago

User error - again. The initial screen shows a delta from the last scan - which has no new regressions, hence green. One must click on 'overall code' to see the historic results....!