In this guide its recommended to enable the gradle daemon even for CI builds:
https://docs.gradle.org/current/userguide/gradle_daemon.html#when_should_i_not_use_the_gradle_daemon
Continuous integration
Since Gradle 3.0, we enable Daemon by default and recommend using it for both developers’ machines and Continuous Integration servers. However, if you suspect that Daemon makes your CI builds unstable, you can disable it to use a fresh runtime for each build since the runtime is completely isolated from any previous builds.
I assume that does NOT apply for builds running in e.g. dynamic build pods/containers launched via jenkins in kubernetes? In those cases I don’t see the point of enabling the daemon since each build is run in a fresh container or am I missing something?