EDIT Looks like there has been a few changes with the new versions of Gradle.
Since 3.0 you should not disable the daemon on your CI anymore
[We] recommend using [the daemon] 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.
PREVIOUS ANSWER
It’s recommended to turn off daemon
on any CI server. use this option to disable it
--no-daemon