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