SonarQube Gradle Plugin 6 can't read cacerts

When upgrading the SonarQube Gradle Plugin from 5.1 to 6.2 I get an issue where it fails with Unable to read truststore from ‘/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts’. My build/scan runs from a ubuntu-latest (ubuntu-24.04) image in Azure DevOps. This is a Microsoft Hosted Image and to set the JDK I’m using the Java Tool Installer Task with Java 21 Pre-Installed as the options.

I have noticed 6.0 included SCANGRADLE-172, that provides a default location for java but this looks to be correctly picking up the JDK being used.

I have added debug statements to my build and can see that /usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts is a symlink to /etc/ssl/certs/adoptium/cacerts

Permissions for these are shown below:
/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/
lrwxrwxrwx 1 root root 31 Apr 16 15:59 cacerts -> /etc/ssl/certs/adoptium/cacerts

/etc/ssl/certs/adoptium/
-r--r--r-- 1 root root 163081 Jun 9 09:45 cacerts

Gradle Version: 8.14.2
Java Version: 21

* What went wrong:
Execution failed for task ':sonar'.
> nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'

Hi,

In between 5.1 and 6.2, we added JRE auto-provisioning. The idea here is that when we bump the Java version required for analysis, you won’t have to scramble to update all your build agents, because we’ll be providing that JVM for the analysis. The down side is that the JVM we provide doesn’t know about your certificates. Your options are to add your certificates to the scanner or skip the auto-provisioning with sonar.scanner.skipJreProvisioning=true.

 
HTH,
Ann

I have tried setting sonar.scanner.skipJreProvisioning=true but I get the same error. I’m connecting to your cloud service so wouldn’t expect there to be any additional certificates that I would need to import.

Configuration in place is as follows:

Environment Variables

SONAR_SCANNER_REPORTTASKFILE=/home/vsts/work/_temp/sonar/533405/c10b4248-42c2-29a1-1b63-4968bbf6dcd1/report-task.txt

SONARQUBE_SCANNER_PARAMS={"sonar.host.url":"https://sonarcloud.io","sonar.token":***,"sonar.organization":"___","sonar.pullrequest.key":"77096","sonar.pullrequest.base":"main","sonar.pullrequest.branch":"renovate/all","sonar.pullrequest.provider":"vsts","sonar.pullrequest.vsts.instanceUrl":"https://dev.azure.com/___/","sonar.pullrequest.vsts.project":"___","sonar.pullrequest.vsts.repository":"___","sonar.scanner.metadataFilePath":"/home/vsts/work/_temp/sonar/533405/c10b4248-42c2-29a1-1b63-4968bbf6dcd1/report-task.txt"}

Gradle Task

sonar {
    properties {
        property "sonar.projectKey", "___"
        property "sonar.projectName", "___"
        property "sonar.organization", "___"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.qualitygate.wait", false
        property "sonar.java.source", 21
        property "sonar.scanner.skipJreProvisioning", true
        property "sonar.coverage.jacoco.xmlReportPaths", "${rootDir}/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"
        property "sonar.gradle.skipCompile", true
    }
}

Hi,

Can you provide a full, --info analysis log so we get the full context of the error? And then you might want to switch back to 5.1 while we figure this out.

 
Thx,
Ann

I expect the JaCoCo warnings at the end are because I’ve split out the execution of the sonar task into it’s own gradle command to debug this.
Yes our main branch is still functioning using 5.1, this is on a pull request to upgrade the sonar plugin.

Initialized native services in: /home/vsts/.gradle/native
Initialized jansi services in: /home/vsts/.gradle/native
The client will now receive all logging from the daemon (pid: 2190). The daemon log file: /home/vsts/.gradle/daemon/8.14.2/daemon-2190.out.log
Starting 2nd build in daemon [uptime: 1 mins 19.315 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 22% of 384 MiB]
Using 2 worker leases.
Now considering [/home/vsts/work/1/s] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/home/vsts/work/1/s/settings.gradle'.
Projects loaded. Root project using build file '/home/vsts/work/1/s/build.gradle'.
Included projects: [root project '___', project ':api', project ':example', project ':lib']

> Configure project :
Evaluating root project '___' using build file '/home/vsts/work/1/s/build.gradle'.
Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
Resolved plugin [id: 'net.ltgt.errorprone', version: '4.2.0']
Resolved plugin [id: 'com.github.kt3k.coveralls', version: '2.12.2']
Resolved plugin [id: 'org.sonarqube', version: '6.2.0.5505']

> Configure project :api
Evaluating project ':api' using build file '/home/vsts/work/1/s/api/build.gradle'.
Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']

> Configure project :example
Evaluating project ':example' using build file '/home/vsts/work/1/s/example/build.gradle'.

> Configure project :lib
Evaluating project ':lib' using build file '/home/vsts/work/1/s/lib/build.gradle'.
Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
All projects evaluated.
Task name matched 'sonar'
Selected primary task 'sonar' from project :
Tasks to be executed: [task ':sonar']
Tasks that were excluded: []
Resolve mutations for :sonar (Thread[#149,included builds,5,main]) started.
:sonar (Thread[#149,included builds,5,main]) started.

> Task :sonar FAILED
JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
Caching disabled for task ':sonar' because:
  Build cache is disabled
Task ':sonar' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
org.sonarqube Gradle plugin 6.2.0.5505
Java 21.0.7 Eclipse Adoptium (64-bit)
Linux 6.11.0-1015-azure (amd64)
User cache: /home/vsts/.sonar/cache

[Incubating] Problems report is available at: file:///home/vsts/work/1/s/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sonar'.
> nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 2s

Hi,

Is this an --info log? It seems to have only Gradle’s sadly terse ‘normal’ amount of information.

 
:frowning:
Ann

Yes that was with --info. I did do a run with --debug which shows the timestamp and log level of each line. I’ve attached below that with the DEBUG lines removed. I don’t think there is any extra lines compared to my previous post.

2025-06-18T15:42:44.3516707Z 2025-06-18T15:42:44.275+0000 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /home/vsts/.gradle/native
2025-06-18T15:42:44.3583118Z 2025-06-18T15:42:44.356+0000 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized jansi services in: /home/vsts/.gradle/native
2025-06-18T15:42:44.4833036Z 2025-06-18T15:42:44.382+0000 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction] 
2025-06-18T15:42:44.8008505Z 2025-06-18T15:42:44.728+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 2139). The daemon log file: /home/vsts/.gradle/daemon/8.14.2/daemon-2139.out.log
2025-06-18T15:42:44.8009223Z 2025-06-18T15:42:44.730+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogAndCheckHealth] Starting 2nd build in daemon [uptime: 1 mins 46.062 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 22% of 384 MiB]
2025-06-18T15:42:44.8012090Z 2025-06-18T15:42:44.735+0000 [INFO] [org.gradle.internal.work.DefaultWorkerLeaseService] Using 2 worker leases.
2025-06-18T15:42:44.8019593Z 2025-06-18T15:42:44.748+0000 [INFO] [org.gradle.internal.watch.registry.impl.WatchableHierarchies] Now considering [/home/vsts/work/1/s] as hierarchies to watch
2025-06-18T15:42:44.8070468Z 2025-06-18T15:42:44.748+0000 [INFO] [org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner] Watching the file system is configured to be enabled if available
2025-06-18T15:42:44.8242946Z 2025-06-18T15:42:44.761+0000 [INFO] [org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner] File system watching is active
2025-06-18T15:42:44.8303379Z 2025-06-18T15:42:44.765+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Starting Build
2025-06-18T15:42:44.8383628Z 2025-06-18T15:42:44.770+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Settings evaluated using settings file '/home/vsts/work/1/s/settings.gradle'.
2025-06-18T15:42:44.9165983Z 2025-06-18T15:42:44.796+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Projects loaded. Root project using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-18T15:42:44.9166880Z 2025-06-18T15:42:44.796+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Included projects: [root project '___', project ':api', project ':example', project ':lib']
2025-06-18T15:42:46.3561423Z 2025-06-18T15:42:44.799+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] 
2025-06-18T15:42:46.3562218Z 2025-06-18T15:42:44.799+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :
2025-06-18T15:42:46.3885112Z 2025-06-18T15:42:44.831+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project '___' using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-18T15:42:46.4032087Z 2025-06-18T15:42:44.854+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-18T15:42:46.4115318Z 2025-06-18T15:42:44.859+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.ltgt.errorprone', version: '4.2.0']
2025-06-18T15:42:46.4128786Z 2025-06-18T15:42:44.904+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'com.github.kt3k.coveralls', version: '2.12.2']
2025-06-18T15:42:46.4291248Z 2025-06-18T15:42:44.916+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'org.sonarqube', version: '6.2.0.5505']
2025-06-18T15:42:47.3410312Z 2025-06-18T15:42:46.013+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] 
2025-06-18T15:42:47.3410743Z 2025-06-18T15:42:46.013+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :api
2025-06-18T15:42:47.3444534Z 2025-06-18T15:42:46.029+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':api' using build file '/home/vsts/work/1/s/api/build.gradle'.
2025-06-18T15:42:47.3445167Z 2025-06-18T15:42:46.036+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-18T15:42:47.8185983Z 2025-06-18T15:42:46.478+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] 
2025-06-18T15:42:47.8186443Z 2025-06-18T15:42:46.478+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :example
2025-06-18T15:42:47.8199563Z 2025-06-18T15:42:46.484+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':example' using build file '/home/vsts/work/1/s/example/build.gradle'.
2025-06-18T15:42:48.0409784Z 2025-06-18T15:42:46.868+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] 
2025-06-18T15:42:48.0410116Z 2025-06-18T15:42:46.868+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :lib
2025-06-18T15:42:48.0416642Z 2025-06-18T15:42:46.877+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':lib' using build file '/home/vsts/work/1/s/lib/build.gradle'.
2025-06-18T15:42:48.0416928Z 2025-06-18T15:42:46.884+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-18T15:42:48.0975636Z 2025-06-18T15:42:47.226+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] All projects evaluated.
2025-06-18T15:42:48.0979281Z 2025-06-18T15:42:47.261+0000 [INFO] [org.gradle.execution.DefaultTaskSelector] Task name matched 'sonar'
2025-06-18T15:42:48.0979504Z 2025-06-18T15:42:47.261+0000 [INFO] [org.gradle.execution.TaskNameResolvingBuildTaskScheduler] Selected primary task 'sonar' from project :
2025-06-18T15:42:48.0981116Z 2025-06-18T15:42:47.289+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Tasks to be executed: [task ':sonar']
2025-06-18T15:42:48.0981337Z 2025-06-18T15:42:47.289+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Tasks that were excluded: []
2025-06-18T15:42:48.0989884Z 2025-06-18T15:42:47.299+0000 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] Resolve mutations for :sonar (Thread[#149,included builds,5,main]) started.
2025-06-18T15:42:48.0993379Z 2025-06-18T15:42:47.300+0000 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :sonar (Thread[#149,included builds,5,main]) started.
2025-06-18T15:42:48.6846257Z 2025-06-18T15:42:47.305+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
2025-06-18T15:42:48.6846751Z 2025-06-18T15:42:47.305+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :sonar FAILED
2025-06-18T15:42:48.6862076Z 2025-06-18T15:42:47.427+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-18T15:42:48.7584867Z 2025-06-18T15:42:47.539+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-18T15:42:48.8030623Z 2025-06-18T15:42:47.583+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-18T15:42:48.8464248Z 2025-06-18T15:42:47.610+0000 [INFO] [org.gradle.internal.execution.steps.AbstractResolveCachingStateStep] Caching disabled for task ':sonar' because:
2025-06-18T15:42:48.8464663Z   Build cache is disabled
2025-06-18T15:42:48.8465111Z 2025-06-18T15:42:47.610+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot task inputs for :sonar' completed
2025-06-18T15:42:48.8465677Z 2025-06-18T15:42:47.610+0000 [DEBUG] [org.gradle.internal.execution.steps.SkipUpToDateStep] Determining if task ':sonar' is up-to-date
2025-06-18T15:42:48.8466210Z 2025-06-18T15:42:47.610+0000 [INFO] [org.gradle.internal.execution.steps.SkipUpToDateStep] Task ':sonar' is not up-to-date because:
2025-06-18T15:42:48.8466774Z   Task has not declared any outputs despite executing actions.
2025-06-18T15:42:48.8467132Z 2025-06-18T15:42:47.610+0000 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: []
2025-06-18T15:42:48.8467569Z 2025-06-18T15:42:47.611+0000 [DEBUG] [org.gradle.api.internal.tasks.execution.TaskExecution] Executing actions for task ':sonar'.
2025-06-18T15:42:48.8467980Z 2025-06-18T15:42:47.611+0000 [INFO] [org.sonarqube.gradle.SonarTask] org.sonarqube Gradle plugin 6.2.0.5505
2025-06-18T15:42:48.8468368Z 2025-06-18T15:42:47.611+0000 [INFO] [org.sonarqube.gradle.SonarTask] Java 21.0.7 Eclipse Adoptium (64-bit)
2025-06-18T15:42:48.8468731Z 2025-06-18T15:42:47.611+0000 [INFO] [org.sonarqube.gradle.SonarTask] Linux 6.11.0-1015-azure (amd64)
2025-06-18T15:42:48.8469152Z 2025-06-18T15:42:47.621+0000 [DEBUG] [org.sonarsource.scanner.lib.ScannerEngineBootstrapper] Scanner max available memory: 512 MB
2025-06-18T15:42:48.8469770Z 2025-06-18T15:42:47.646+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.util.ArchResolver] uname -m returned 'x86_64'
2025-06-18T15:42:48.8480615Z 2025-06-18T15:42:47.649+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.HttpConfig] Using JVM default truststore: /usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts
2025-06-18T15:42:48.8481138Z 2025-06-18T15:42:47.650+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.cache.FileCache] Create: /home/vsts/.sonar/cache
2025-06-18T15:42:48.8481542Z 2025-06-18T15:42:47.651+0000 [INFO] [org.sonarsource.scanner.lib.internal.cache.FileCache] User cache: /home/vsts/.sonar/cache
2025-06-18T15:42:48.8481986Z 2025-06-18T15:42:47.651+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.cache.FileCache] Create: /home/vsts/.sonar/cache/_tmp
2025-06-18T15:42:48.8482454Z 2025-06-18T15:42:48.185+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory] Loading OS trusted SSL certificates...
2025-06-18T15:42:48.8483087Z 2025-06-18T15:42:48.185+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory] This operation might be slow or even get stuck. You can skip it by passing the scanner property 'sonar.scanner.skipSystemTruststore=true'
2025-06-18T15:42:48.8483667Z 2025-06-18T15:42:48.456+0000 [DEBUG] [nl.altindag.ssl.util.KeyStoreUtils] Loaded [440] system trusted certificates
2025-06-18T15:42:48.8484204Z 2025-06-18T15:42:48.660+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute run for :sonar' completed
2025-06-18T15:42:48.8484800Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':sonar'' completed
2025-06-18T15:42:48.8485333Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: []
2025-06-18T15:42:48.8485915Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':sonar' from context.
2025-06-18T15:42:48.8486539Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :sonar'
2025-06-18T15:42:48.8487123Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :sonar' completed
2025-06-18T15:42:48.8487686Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :sonar completed, executed: true
2025-06-18T15:42:48.8488215Z 2025-06-18T15:42:48.661+0000 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :sonar failed
2025-06-18T15:42:48.8488735Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on state of build :
2025-06-18T15:42:48.8489241Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on task execution for build :
2025-06-18T15:42:48.8490107Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: acquired lock on worker lease
2025-06-18T15:42:48.8490608Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: released lock on worker lease
2025-06-18T15:42:48.8491098Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run tasks'
2025-06-18T15:42:48.8491568Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run tasks' completed
2025-06-18T15:42:48.8492030Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on worker lease
2025-06-18T15:42:48.8492698Z 2025-06-18T15:42:48.662+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: acquired lock on worker lease
2025-06-18T15:42:48.8493203Z 2025-06-18T15:42:48.663+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run main tasks'
2025-06-18T15:42:48.8493702Z 2025-06-18T15:42:48.663+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run main tasks' completed
2025-06-18T15:42:48.8494205Z 2025-06-18T15:42:48.663+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Finish root build tree' started
2025-06-18T15:42:48.8494717Z 2025-06-18T15:42:48.663+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: acquired lock on worker lease
2025-06-18T15:42:48.8495228Z 2025-06-18T15:42:48.663+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: released lock on worker lease
2025-06-18T15:42:48.8495739Z 2025-06-18T15:42:48.669+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Finish root build tree'
2025-06-18T15:42:48.8496261Z 2025-06-18T15:42:48.669+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Finish root build tree' completed2025-06-18T15:42:48.8523326Z 2025-06-18T15:42:48.671+0000 [WARN] [org.gradle.problems.internal.impl.DefaultProblemsReportCreator] 
2025-06-18T15:42:48.8523772Z [Incubating] Problems report is available at: file:///home/vsts/work/1/s/build/reports/problems/problems-report.html
2025-06-18T15:42:48.8524177Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2025-06-18T15:42:48.8524612Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2025-06-18T15:42:48.8525044Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2025-06-18T15:42:48.8525468Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2025-06-18T15:42:48.8525933Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':sonar'.
2025-06-18T15:42:48.8526543Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'
2025-06-18T15:42:48.8527086Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2025-06-18T15:42:48.8527488Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2025-06-18T15:42:48.8527941Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2025-06-18T15:42:48.8528428Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2025-06-18T15:42:48.8529071Z 2025-06-18T15:42:48.678+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Get more help at https://help.gradle.org.
2025-06-18T15:42:48.8529502Z 2025-06-18T15:42:48.679+0000 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
2025-06-18T15:42:48.8530103Z 2025-06-18T15:42:48.679+0000 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4s
2025-06-18T15:42:48.8530543Z 2025-06-18T15:42:48.679+0000 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] 
2025-06-18T15:42:48.8530934Z Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
2025-06-18T15:42:48.8531095Z 
2025-06-18T15:42:48.8531409Z You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
2025-06-18T15:42:48.8531737Z 
2025-06-18T15:42:48.8532100Z For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
2025-06-18T15:42:48.8532597Z 2025-06-18T15:42:48.679+0000 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 1 actionable task: 1 executed
2025-06-18T15:42:48.9558710Z 2025-06-18T15:42:48.950+0000 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction] 
2025-06-18T15:42:48.9851630Z ##[error]Bash exited with code '1'.
2025-06-18T15:42:48.9903141Z ##[section]Finishing: Gradle Build

EDIT: I’ve just added back in some of the debug lines as they look relevant as it is saying it successfully loaded the certificates.

1 Like

Hi,

I see this is using Java 21. So this is with sonar.scanner.skipJreProvisioning=true?

Anyway, thanks for the log. I’m going to flag this for more expert eyes.

But just to double-check, these are running on the same build agents?

 
Ann

Yes they are both running on the MS Hosted Agents, with the same image ubuntu-latest.

The previous logs were not with the sonar.scanner.skipJreProvisioning=true property set but this post I have added it again:

sonar {
    properties {
        property "sonar.projectKey", "mrisoftware_java-cli"
        property "sonar.projectName", "Common - Java CLI"
        property "sonar.organization", "mri-software"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.qualitygate.wait", false
        property "sonar.java.source", 21
        property "sonar.scanner.skipJreProvisioning", true
        property "sonar.coverage.jacoco.xmlReportPaths", "${rootDir}/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"
        property "sonar.gradle.skipCompile", true
    }
}

Although the debug message on line 62 suggests it hasn’t taken affect.

2025-06-19T07:18:29.9131701Z 2025-06-19T07:18:29.848+0000 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /home/vsts/.gradle/native
2025-06-19T07:18:29.9182628Z 2025-06-19T07:18:29.916+0000 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized jansi services in: /home/vsts/.gradle/native
2025-06-19T07:18:30.0521845Z 2025-06-19T07:18:29.946+0000 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction]
2025-06-19T07:18:30.3565022Z 2025-06-19T07:18:30.274+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 2130). The daemon log file: /home/vsts/.gradle/daemon/8.14.2/daemon-2130.out.log
2025-06-19T07:18:30.3571398Z 2025-06-19T07:18:30.276+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogAndCheckHealth] Starting 2nd build in daemon [uptime: 1 mins 31.852 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 22% of 384 MiB]
2025-06-19T07:18:30.3662616Z 2025-06-19T07:18:30.279+0000 [INFO] [org.gradle.internal.work.DefaultWorkerLeaseService] Using 2 worker leases.
2025-06-19T07:18:30.3749609Z 2025-06-19T07:18:30.292+0000 [INFO] [org.gradle.internal.watch.registry.impl.WatchableHierarchies] Now considering [/home/vsts/work/1/s] as hierarchies to watch
2025-06-19T07:18:30.3794860Z 2025-06-19T07:18:30.293+0000 [INFO] [org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner] Watching the file system is configured to be enabled if available
2025-06-19T07:18:30.3817367Z 2025-06-19T07:18:30.305+0000 [INFO] [org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner] File system watching is active
2025-06-19T07:18:30.3864151Z 2025-06-19T07:18:30.308+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Starting Build
2025-06-19T07:18:30.3950875Z 2025-06-19T07:18:30.313+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Settings evaluated using settings file '/home/vsts/work/1/s/settings.gradle'.
2025-06-19T07:18:30.4073840Z 2025-06-19T07:18:30.327+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Projects loaded. Root project using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-19T07:18:30.4074543Z 2025-06-19T07:18:30.328+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Included projects: [root project 'java-cli', project ':api', project ':example', project ':lib']
2025-06-19T07:18:31.3648234Z 2025-06-19T07:18:30.328+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory]
2025-06-19T07:18:31.3648627Z 2025-06-19T07:18:30.328+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :
2025-06-19T07:18:31.3780720Z 2025-06-19T07:18:30.338+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project 'java-cli' using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-19T07:18:31.3793038Z 2025-06-19T07:18:30.396+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-19T07:18:31.3802485Z 2025-06-19T07:18:30.410+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.ltgt.errorprone', version: '4.2.0']
2025-06-19T07:18:31.3812222Z 2025-06-19T07:18:30.418+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'com.github.kt3k.coveralls', version: '2.12.2']
2025-06-19T07:18:31.3821436Z 2025-06-19T07:18:30.430+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'org.sonarqube', version: '6.2.0.5505']
2025-06-19T07:18:32.1624681Z 2025-06-19T07:18:31.246+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory]
2025-06-19T07:18:32.1625116Z 2025-06-19T07:18:31.246+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :api
2025-06-19T07:18:32.1656444Z 2025-06-19T07:18:31.260+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':api' using build file '/home/vsts/work/1/s/api/build.gradle'.
2025-06-19T07:18:32.1656993Z 2025-06-19T07:18:31.271+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-19T07:18:32.7357503Z 2025-06-19T07:18:31.868+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory]
2025-06-19T07:18:32.7357937Z 2025-06-19T07:18:31.868+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :example
2025-06-19T07:18:32.7370991Z 2025-06-19T07:18:31.876+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':example' using build file '/home/vsts/work/1/s/example/build.gradle'.
2025-06-19T07:18:33.1328128Z 2025-06-19T07:18:32.199+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory]
2025-06-19T07:18:33.1328652Z 2025-06-19T07:18:32.199+0000 [LIFECYCLE] [org.gradle.internal.logging.progress.ProgressLoggerFactory] > Configure project :lib
2025-06-19T07:18:33.1361567Z 2025-06-19T07:18:32.203+0000 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating project ':lib' using build file '/home/vsts/work/1/s/lib/build.gradle'.
2025-06-19T07:18:33.1362211Z 2025-06-19T07:18:32.211+0000 [INFO] [org.gradle.plugin.use.internal.DefaultPluginRequestApplicator] Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-19T07:18:33.2404594Z 2025-06-19T07:18:32.558+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] All projects evaluated.
2025-06-19T07:18:33.2412088Z 2025-06-19T07:18:32.591+0000 [INFO] [org.gradle.execution.DefaultTaskSelector] Task name matched 'sonar'
2025-06-19T07:18:33.2412459Z 2025-06-19T07:18:32.591+0000 [INFO] [org.gradle.execution.TaskNameResolvingBuildTaskScheduler] Selected primary task 'sonar' from project :
2025-06-19T07:18:33.2415904Z 2025-06-19T07:18:32.616+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Tasks to be executed: [task ':sonar']
2025-06-19T07:18:33.2416140Z 2025-06-19T07:18:32.616+0000 [INFO] [org.gradle.internal.buildevents.BuildLogger] Tasks that were excluded: []
2025-06-19T07:18:33.2427764Z 2025-06-19T07:18:32.625+0000 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] Resolve mutations for :sonar (Thread[#149,included builds,5,main]) started.
2025-06-19T07:18:33.2453633Z 2025-06-19T07:18:32.626+0000 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :sonar (Thread[#149,included builds,5,main]) started.
2025-06-19T07:18:33.9493499Z 2025-06-19T07:18:32.633+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
2025-06-19T07:18:33.9494067Z 2025-06-19T07:18:32.633+0000 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :sonar FAILED
2025-06-19T07:18:33.9500120Z 2025-06-19T07:18:32.797+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-19T07:18:34.0476783Z 2025-06-19T07:18:32.962+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-19T07:18:34.0884400Z 2025-06-19T07:18:33.000+0000 [INFO] [org.sonarqube.gradle.SonarPropertyComputer] JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-19T07:18:34.1084290Z 2025-06-19T07:18:33.039+0000 [INFO] [org.gradle.internal.execution.steps.AbstractResolveCachingStateStep] Caching disabled for task ':sonar' because:
2025-06-19T07:18:34.1084675Z   Build cache is disabled
2025-06-19T07:18:34.1085081Z 2025-06-19T07:18:33.039+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Snapshot task inputs for :sonar' completed
2025-06-19T07:18:34.1085627Z 2025-06-19T07:18:33.039+0000 [DEBUG] [org.gradle.internal.execution.steps.SkipUpToDateStep] Determining if task ':sonar' is up-to-date
2025-06-19T07:18:34.1086126Z 2025-06-19T07:18:33.039+0000 [INFO] [org.gradle.internal.execution.steps.SkipUpToDateStep] Task ':sonar' is not up-to-date because:
2025-06-19T07:18:34.1086653Z   Task has not declared any outputs despite executing actions.
2025-06-19T07:18:34.1087003Z 2025-06-19T07:18:33.039+0000 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: []
2025-06-19T07:18:34.1087471Z 2025-06-19T07:18:33.039+0000 [DEBUG] [org.gradle.api.internal.tasks.execution.TaskExecution] Executing actions for task ':sonar'.
2025-06-19T07:18:34.1087909Z 2025-06-19T07:18:33.040+0000 [INFO] [org.sonarqube.gradle.SonarTask] org.sonarqube Gradle plugin 6.2.0.5505
2025-06-19T07:18:34.1088291Z 2025-06-19T07:18:33.040+0000 [INFO] [org.sonarqube.gradle.SonarTask] Java 21.0.7 Eclipse Adoptium (64-bit)
2025-06-19T07:18:34.1088668Z 2025-06-19T07:18:33.040+0000 [INFO] [org.sonarqube.gradle.SonarTask] Linux 6.11.0-1015-azure (amd64)
2025-06-19T07:18:34.1089066Z 2025-06-19T07:18:33.069+0000 [DEBUG] [org.sonarsource.scanner.lib.ScannerEngineBootstrapper] Scanner max available memory: 512 MB
2025-06-19T07:18:34.1089581Z 2025-06-19T07:18:33.109+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.util.ArchResolver] uname -m returned 'x86_64'
2025-06-19T07:18:34.1090047Z 2025-06-19T07:18:33.112+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.HttpConfig] Using JVM default truststore: /usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts
2025-06-19T07:18:34.1090871Z 2025-06-19T07:18:33.116+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.cache.FileCache] Create: /home/vsts/.sonar/cache
2025-06-19T07:18:34.1091298Z 2025-06-19T07:18:33.117+0000 [INFO] [org.sonarsource.scanner.lib.internal.cache.FileCache] User cache: /home/vsts/.sonar/cache
2025-06-19T07:18:34.1091727Z 2025-06-19T07:18:33.117+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.cache.FileCache] Create: /home/vsts/.sonar/cache/_tmp
2025-06-19T07:18:34.1092176Z 2025-06-19T07:18:33.356+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory] Loading OS trusted SSL certificates...
2025-06-19T07:18:34.1092729Z 2025-06-19T07:18:33.357+0000 [DEBUG] [org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory] This operation might be slow or even get stuck. You can skip it by passing the scanner property 'sonar.scanner.skipSystemTruststore=true'
2025-06-19T07:18:34.1093259Z 2025-06-19T07:18:33.758+0000 [DEBUG] [nl.altindag.ssl.util.KeyStoreUtils] Loaded [440] system trusted certificates
2025-06-19T07:18:34.1093733Z 2025-06-19T07:18:33.942+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute run for :sonar' completed
2025-06-19T07:18:34.1094303Z 2025-06-19T07:18:33.943+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':sonar'' completed
2025-06-19T07:18:34.1094793Z 2025-06-19T07:18:33.943+0000 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: []
2025-06-19T07:18:34.1095290Z 2025-06-19T07:18:33.943+0000 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':sonar' from context.
2025-06-19T07:18:34.1095849Z 2025-06-19T07:18:33.943+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :sonar'
2025-06-19T07:18:34.1096366Z 2025-06-19T07:18:33.943+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :sonar' completed
2025-06-19T07:18:34.1096867Z 2025-06-19T07:18:33.944+0000 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :sonar completed, executed: true
2025-06-19T07:18:34.1097333Z 2025-06-19T07:18:33.944+0000 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :sonar failed
2025-06-19T07:18:34.1097797Z 2025-06-19T07:18:33.944+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on state of build :
2025-06-19T07:18:34.1098275Z 2025-06-19T07:18:33.944+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on task execution for build :
2025-06-19T07:18:34.1098918Z 2025-06-19T07:18:33.945+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: acquired lock on worker lease
2025-06-19T07:18:34.1099381Z 2025-06-19T07:18:33.945+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: released lock on worker lease
2025-06-19T07:18:34.1099845Z 2025-06-19T07:18:33.947+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run tasks'
2025-06-19T07:18:34.1100294Z 2025-06-19T07:18:33.947+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run tasks' completed
2025-06-19T07:18:34.1100921Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on worker lease
2025-06-19T07:18:34.1101398Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: acquired lock on worker lease
2025-06-19T07:18:34.1101968Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker: released lock on worker lease
2025-06-19T07:18:34.1102420Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: acquired lock on worker lease
2025-06-19T07:18:34.1102864Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run main tasks'
2025-06-19T07:18:34.1103307Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run main tasks' completed
2025-06-19T07:18:34.1103770Z 2025-06-19T07:18:33.948+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Finish root build tree' started
2025-06-19T07:18:34.1104242Z 2025-06-19T07:18:33.963+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Finish root build tree'
2025-06-19T07:18:34.1104718Z 2025-06-19T07:18:33.963+0000 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Finish root build tree' completed
2025-06-19T07:18:34.1105137Z 2025-06-19T07:18:33.966+0000 [WARN] [org.gradle.problems.internal.impl.DefaultProblemsReportCreator]
2025-06-19T07:18:34.1105531Z [Incubating] Problems report is available at: file:///home/vsts/work/1/s/build/reports/problems/problems-report.html
2025-06-19T07:18:34.1105910Z 2025-06-19T07:18:33.981+0000 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler]
2025-06-19T07:18:34.1106271Z Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
2025-06-19T07:18:34.1106418Z
2025-06-19T07:18:34.1106716Z You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
2025-06-19T07:18:34.1106916Z
2025-06-19T07:18:34.1107236Z For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
2025-06-19T07:18:34.1107702Z 2025-06-19T07:18:33.981+0000 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 1 actionable task: 1 executed
2025-06-19T07:18:34.1117837Z 2025-06-19T07:18:33.980+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2025-06-19T07:18:34.1118238Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2025-06-19T07:18:34.1118618Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2025-06-19T07:18:34.1119049Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':sonar'.
2025-06-19T07:18:34.1119617Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'
2025-06-19T07:18:34.1120130Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2025-06-19T07:18:34.1120693Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2025-06-19T07:18:34.1121133Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2025-06-19T07:18:34.1121591Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2025-06-19T07:18:34.1122031Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Get more help at https://help.gradle.org.
2025-06-19T07:18:34.1122597Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
2025-06-19T07:18:34.1122979Z 2025-06-19T07:18:33.981+0000 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4s
2025-06-19T07:18:34.1123162Z
2025-06-19T07:18:34.2508035Z 2025-06-19T07:18:34.247+0000 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction]
2025-06-19T07:18:34.2510861Z
2025-06-19T07:18:34.2700955Z
2025-06-19T07:18:34.2718827Z ##[error]Bash exited with code '1'.
2025-06-19T07:18:34.2788846Z ##[section]Finishing: Gradle Build
1 Like

Hi @Paul_Birtle,

I am mainly interested in the stacktrace. Can you provide a version of the log with --info and --stacktrace enable? Also, can you try to run the analysis with sonar.scanner.skipSystemTruststore=true? If you haven’t set up any specific certificate, this should solve the problem.

Logs with Stacktrace below.

This is still with sonar.scanner.skipSystemTruststore=true being set.

We don’t have any custom certificates in use.

The Java installation is the pre-installed one on the MS Hosted Runner.

2025-06-20T14:45:23.4842129Z Initialized native services in: /home/vsts/.gradle/native
2025-06-20T14:45:23.4907008Z Initialized jansi services in: /home/vsts/.gradle/native
2025-06-20T14:45:23.9228978Z The client will now receive all logging from the daemon (pid: 2016). The daemon log file: /home/vsts/.gradle/daemon/8.14.2/daemon-2016.out.log
2025-06-20T14:45:23.9239393Z Starting 2nd build in daemon [uptime: 1 mins 43.827 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 22% of 384 MiB]
2025-06-20T14:45:23.9243106Z Using 2 worker leases.
2025-06-20T14:45:23.9244436Z Now considering [/home/vsts/work/1/s] as hierarchies to watch
2025-06-20T14:45:23.9268358Z Watching the file system is configured to be enabled if available
2025-06-20T14:45:23.9268883Z File system watching is active
2025-06-20T14:45:23.9269126Z Starting Build
2025-06-20T14:45:23.9269394Z Settings evaluated using settings file '/home/vsts/work/1/s/settings.gradle'.
2025-06-20T14:45:24.0234163Z Projects loaded. Root project using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-20T14:45:24.0241532Z Included projects: [root project '___', project ':api', project ':example', project ':lib']
2025-06-20T14:45:24.2226049Z 
2025-06-20T14:45:24.2227114Z > Configure project :
2025-06-20T14:45:24.2227830Z Evaluating root project '___' using build file '/home/vsts/work/1/s/build.gradle'.
2025-06-20T14:45:24.2228726Z Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-20T14:45:24.2229359Z Resolved plugin [id: 'net.ltgt.errorprone', version: '4.2.0']
2025-06-20T14:45:24.2229936Z Resolved plugin [id: 'com.github.kt3k.coveralls', version: '2.12.2']
2025-06-20T14:45:24.2230520Z Resolved plugin [id: 'org.sonarqube', version: '6.2.0.5505']
2025-06-20T14:45:24.3232107Z 
2025-06-20T14:45:24.3233105Z > Configure project :api
2025-06-20T14:45:24.3235243Z Evaluating project ':api' using build file '/home/vsts/work/1/s/api/build.gradle'.
2025-06-20T14:45:24.3236940Z Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-20T14:45:24.4232599Z 
2025-06-20T14:45:24.4234118Z > Configure project :example
2025-06-20T14:45:24.4235375Z Evaluating project ':example' using build file '/home/vsts/work/1/s/example/build.gradle'.
2025-06-20T14:45:24.5229534Z 
2025-06-20T14:45:24.5230712Z > Configure project :lib
2025-06-20T14:45:24.5233216Z Evaluating project ':lib' using build file '/home/vsts/work/1/s/lib/build.gradle'.
2025-06-20T14:45:24.5235264Z Resolved plugin [id: 'net.linguica.maven-settings', version: '0.5']
2025-06-20T14:45:24.5242736Z All projects evaluated.
2025-06-20T14:45:24.5243387Z Task name matched 'sonar'
2025-06-20T14:45:24.5244895Z Selected primary task 'sonar' from project :
2025-06-20T14:45:24.5247097Z Tasks to be executed: [task ':sonar']
2025-06-20T14:45:24.5247850Z Tasks that were excluded: []
2025-06-20T14:45:24.5249019Z Resolve mutations for :sonar (Thread[#149,included builds,5,main]) started.
2025-06-20T14:45:24.5251000Z :sonar (Thread[#150,Execution worker,5,main]) started.
2025-06-20T14:45:25.5246240Z 
2025-06-20T14:45:25.5251419Z > Task :sonar FAILED
2025-06-20T14:45:25.5251939Z JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-20T14:45:25.5252449Z JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-20T14:45:25.5252933Z JaCoCo report task detected, but XML report is not enabled or it was not produced. Coverage for this task will not be reported.
2025-06-20T14:45:25.5253355Z Caching disabled for task ':sonar' because:
2025-06-20T14:45:25.5253693Z   Build cache is disabled
2025-06-20T14:45:25.5253962Z Task ':sonar' is not up-to-date because:
2025-06-20T14:45:25.5254329Z   Task has not declared any outputs despite executing actions.
2025-06-20T14:45:25.5254691Z org.sonarqube Gradle plugin 6.2.0.5505
2025-06-20T14:45:25.5255027Z Java 21.0.7 Eclipse Adoptium (64-bit)
2025-06-20T14:45:25.5255356Z Linux 6.11.0-1015-azure (amd64)
2025-06-20T14:45:25.5255674Z User cache: /home/vsts/.sonar/cache
2025-06-20T14:45:25.6210095Z 
2025-06-20T14:45:25.6256877Z [Incubating] Problems report is available at: file:///home/vsts/work/1/s/build/reports/problems/problems-report.html
2025-06-20T14:45:25.6257453Z 
2025-06-20T14:45:25.6257844Z FAILURE: Build failed with an exception.
2025-06-20T14:45:25.6258066Z 
2025-06-20T14:45:25.6258567Z * What went wrong:
2025-06-20T14:45:25.6258971Z Execution failed for task ':sonar'.
2025-06-20T14:45:25.6259522Z > nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'
2025-06-20T14:45:25.6259833Z 
2025-06-20T14:45:25.6260135Z * Try:
2025-06-20T14:45:25.6260466Z > Run with --debug option to get more log output.
2025-06-20T14:45:25.6260824Z > Run with --scan to get full insights.
2025-06-20T14:45:25.6289184Z > Get more help at https://help.gradle.org.
2025-06-20T14:45:25.6296054Z 
2025-06-20T14:45:25.6296389Z * Exception is:
2025-06-20T14:45:25.6296710Z org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonar'.
2025-06-20T14:45:25.6297432Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:130)
2025-06-20T14:45:25.6297912Z 	at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:293)
2025-06-20T14:45:25.6323241Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:128)
2025-06-20T14:45:25.6323742Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
2025-06-20T14:45:25.6324388Z 	at org.gradle.api.internal.tasks.execution.ProblemsTaskPathTrackingTaskExecuter.execute(ProblemsTaskPathTrackingTaskExecuter.java:41)
2025-06-20T14:45:25.6325057Z 	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
2025-06-20T14:45:25.6325647Z 	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
2025-06-20T14:45:25.6326470Z 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
2025-06-20T14:45:25.6327024Z 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
2025-06-20T14:45:25.6327570Z 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
2025-06-20T14:45:25.6328121Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
2025-06-20T14:45:25.6328864Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
2025-06-20T14:45:25.6939000Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
2025-06-20T14:45:25.6940150Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:210)
2025-06-20T14:45:25.6971762Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:205)
2025-06-20T14:45:25.6972459Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
2025-06-20T14:45:25.6989499Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7029195Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
2025-06-20T14:45:25.7039132Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7039816Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:54)
2025-06-20T14:45:25.7040437Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
2025-06-20T14:45:25.7041056Z 	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
2025-06-20T14:45:25.7041695Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
2025-06-20T14:45:25.7042375Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
2025-06-20T14:45:25.7043084Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
2025-06-20T14:45:25.7043752Z 	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
2025-06-20T14:45:25.7044416Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
2025-06-20T14:45:25.7045172Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
2025-06-20T14:45:25.7046222Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)
2025-06-20T14:45:25.7046816Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
2025-06-20T14:45:25.7047416Z 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2025-06-20T14:45:25.7048020Z 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
2025-06-20T14:45:25.7048808Z Caused by: org.sonarqube.gradle.AnalysisException: nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'
2025-06-20T14:45:25.7049427Z 	at org.sonarqube.gradle.SonarTask.run(SonarTask.java:148)
2025-06-20T14:45:25.7049952Z 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
2025-06-20T14:45:25.7050774Z 	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
2025-06-20T14:45:25.7051353Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
2025-06-20T14:45:25.7051922Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
2025-06-20T14:45:25.7052525Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
2025-06-20T14:45:25.7053100Z 	at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
2025-06-20T14:45:25.7053643Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:30)
2025-06-20T14:45:25.7054205Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:27)
2025-06-20T14:45:25.7054783Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
2025-06-20T14:45:25.7055360Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7055982Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
2025-06-20T14:45:25.7056548Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7057125Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:48)
2025-06-20T14:45:25.7057644Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
2025-06-20T14:45:25.7058172Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
2025-06-20T14:45:25.7058877Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
2025-06-20T14:45:25.7059479Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
2025-06-20T14:45:25.7060003Z 	at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
2025-06-20T14:45:25.7060550Z 	at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
2025-06-20T14:45:25.7061131Z 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
2025-06-20T14:45:25.7061637Z 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
2025-06-20T14:45:25.7062224Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:210)
2025-06-20T14:45:25.7062867Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:205)
2025-06-20T14:45:25.7063505Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
2025-06-20T14:45:25.7064067Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7064920Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
2025-06-20T14:45:25.7065489Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7066060Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:54)
2025-06-20T14:45:25.7066621Z 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
2025-06-20T14:45:25.7067114Z 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
2025-06-20T14:45:25.7067676Z 	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:42)
2025-06-20T14:45:25.7068203Z 	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:75)
2025-06-20T14:45:25.7121238Z 	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
2025-06-20T14:45:25.7122119Z 	at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
2025-06-20T14:45:25.7122744Z 	at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
2025-06-20T14:45:25.7123333Z 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
2025-06-20T14:45:25.7123939Z 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
2025-06-20T14:45:25.7124527Z 	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
2025-06-20T14:45:25.7125079Z 	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
2025-06-20T14:45:25.7125695Z 	at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:69)
2025-06-20T14:45:25.7126338Z 	at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:46)
2025-06-20T14:45:25.7126911Z 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
2025-06-20T14:45:25.7127488Z 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
2025-06-20T14:45:25.7128052Z 	at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
2025-06-20T14:45:25.7128710Z 	at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
2025-06-20T14:45:25.7129224Z 	at org.gradle.internal.Either$Right.fold(Either.java:175)
2025-06-20T14:45:25.7129691Z 	at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
2025-06-20T14:45:25.7130199Z 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
2025-06-20T14:45:25.7130685Z 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
2025-06-20T14:45:25.7131239Z 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
2025-06-20T14:45:25.7131821Z 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
2025-06-20T14:45:25.7149061Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:75)
2025-06-20T14:45:25.7159163Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:53)
2025-06-20T14:45:25.7159657Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:53)
2025-06-20T14:45:25.7160104Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:35)
2025-06-20T14:45:25.7160607Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
2025-06-20T14:45:25.7161411Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
2025-06-20T14:45:25.7162365Z 	at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
2025-06-20T14:45:25.7163048Z 	at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
2025-06-20T14:45:25.7163711Z 	at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
2025-06-20T14:45:25.7164372Z 	at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
2025-06-20T14:45:25.7164971Z 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
2025-06-20T14:45:25.7209038Z 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
2025-06-20T14:45:25.7210015Z 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:107)
2025-06-20T14:45:25.7210591Z 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:56)
2025-06-20T14:45:25.7211209Z 	at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
2025-06-20T14:45:25.7211919Z 	at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
2025-06-20T14:45:25.7212624Z 	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
2025-06-20T14:45:25.7213333Z 	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
2025-06-20T14:45:25.7213982Z 	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
2025-06-20T14:45:25.7214617Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
2025-06-20T14:45:25.7215247Z 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
2025-06-20T14:45:25.7215907Z 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
2025-06-20T14:45:25.7216510Z 	at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
2025-06-20T14:45:25.7217128Z 	at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
2025-06-20T14:45:25.7217749Z 	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
2025-06-20T14:45:25.7218616Z 	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
2025-06-20T14:45:25.7219229Z 	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
2025-06-20T14:45:25.7219866Z 	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
2025-06-20T14:45:25.7220456Z 	at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
2025-06-20T14:45:25.7221022Z 	at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
2025-06-20T14:45:25.7221651Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
2025-06-20T14:45:25.7222341Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
2025-06-20T14:45:25.7223020Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
2025-06-20T14:45:25.7223642Z 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
2025-06-20T14:45:25.7224355Z 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
2025-06-20T14:45:25.7267074Z 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
2025-06-20T14:45:25.7269214Z 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
2025-06-20T14:45:25.7269684Z 	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
2025-06-20T14:45:25.7270202Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
2025-06-20T14:45:25.7270734Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
2025-06-20T14:45:25.7271282Z 	at org.gradle.api.internal.tasks.execution.ProblemsTaskPathTrackingTaskExecuter.execute(ProblemsTaskPathTrackingTaskExecuter.java:41)
2025-06-20T14:45:25.7272106Z 	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
2025-06-20T14:45:25.7272665Z 	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
2025-06-20T14:45:25.7273209Z 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
2025-06-20T14:45:25.7273870Z 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
2025-06-20T14:45:25.7296245Z 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
2025-06-20T14:45:25.7296806Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
2025-06-20T14:45:25.7297344Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
2025-06-20T14:45:25.7297848Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
2025-06-20T14:45:25.7298569Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:210)
2025-06-20T14:45:25.7299173Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:205)
2025-06-20T14:45:25.7299701Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
2025-06-20T14:45:25.7300203Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7300710Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
2025-06-20T14:45:25.7301226Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
2025-06-20T14:45:25.7301733Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:54)
2025-06-20T14:45:25.7302471Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
2025-06-20T14:45:25.7303061Z 	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
2025-06-20T14:45:25.7303676Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
2025-06-20T14:45:25.7304379Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
2025-06-20T14:45:25.7305086Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
2025-06-20T14:45:25.7305751Z 	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
2025-06-20T14:45:25.7306418Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
2025-06-20T14:45:25.7307404Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
2025-06-20T14:45:25.7308074Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)
2025-06-20T14:45:25.7308823Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
2025-06-20T14:45:25.7309450Z 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2025-06-20T14:45:25.7310078Z 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
2025-06-20T14:45:25.7310687Z Caused by: nl.altindag.ssl.exception.GenericKeyStoreException: Unable to read truststore from '/usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts'
2025-06-20T14:45:25.7311535Z 	at org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory.configureSsl(OkHttpClientFactory.java:146)
2025-06-20T14:45:25.7312180Z 	at org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory.create(OkHttpClientFactory.java:80)
2025-06-20T14:45:25.7312777Z 	at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.init(ScannerHttpClient.java:52)
2025-06-20T14:45:25.7313373Z 	at org.sonarsource.scanner.lib.ScannerEngineBootstrapper.bootstrap(ScannerEngineBootstrapper.java:147)
2025-06-20T14:45:25.7313896Z 	at org.sonarqube.gradle.SonarTask.run(SonarTask.java:134)
2025-06-20T14:45:25.7314294Z 	... 119 more
2025-06-20T14:45:25.7314580Z Caused by: java.io.IOException: stream does not represent a PKCS12 key store
2025-06-20T14:45:25.7315050Z 	at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineLoad(Unknown Source)
2025-06-20T14:45:25.7315637Z 	at org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory.loadKeyStoreWithPassword(OkHttpClientFactory.java:185)
2025-06-20T14:45:25.7316335Z 	at org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory.loadTrustStoreWithBouncyCastle(OkHttpClientFactory.java:169)
2025-06-20T14:45:25.7317011Z 	at org.sonarsource.scanner.lib.internal.http.OkHttpClientFactory.configureSsl(OkHttpClientFactory.java:139)
2025-06-20T14:45:25.7317527Z 	... 123 more
2025-06-20T14:45:25.7317644Z 
2025-06-20T14:45:25.7317726Z 
2025-06-20T14:45:25.7318009Z Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
2025-06-20T14:45:25.7318278Z 
2025-06-20T14:45:25.7337423Z You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
2025-06-20T14:45:25.7337842Z 
2025-06-20T14:45:25.7338306Z For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
2025-06-20T14:45:25.7338714Z 
2025-06-20T14:45:25.7339057Z BUILD FAILED in 2s
2025-06-20T14:45:25.7339421Z 1 actionable task: 1 executed
2025-06-20T14:45:25.8151661Z 
2025-06-20T14:45:25.8206779Z ##[error]Bash exited with code '1'.
2025-06-20T14:45:25.8252463Z ##[section]Finishing: Gradle Build

Thank you for the quick reply :slightly_smiling_face:,

I think I have a better idea about the problem. It sounds like you’re encountering an issue because the SonarQube Gradle plugin 6.2 expects a PKCS12 keystore, while yours is in JKS format. The error stream does not represent a PKCS12 key store seems to indicate that.

To verify your current keystore type, run this command:

keytool -list -v -keystore /usr/lib/jvm/temurin-21-jdk-amd64/lib/security/cacerts

If you find in the output Keystore type: JKS, then this is indeed the cause. You’ll need to convert it to PKCS12 if you want to use the latest plugin. I am not certain if not supporting JKS was intentional, but it’s possible we’ll add support for it in a future plugin version. You might consider waiting to update it until then.

yes the response is Keystore type: JKS, although this same build server and JDK installation will work with plugin v5.1. Has support for JKS been dropped since v5.1 or was the keystore not being loaded previously?

I will pin our plugin to v5.1 in the meantime as we wouldn’t be in a position to convert the keystore, I’d want to keep the build agents as vanilla as possible if i can.