Hello, I know that this is probably a stupid question and I’ve probably misunderstood something in the caching.
First of all, I’m experimenting with our build pipeline at the moment. There is first one job and after that it’s several jobs running in parallel on different machines. The workspace from the first job is copied to each following job. Basically 1 job -> 20 parallel jobs that might be running on the same machine or not.
From what I’ve seen regarding the caches, there are three caches. One for the task output hashes etc in project.home/.gradle/1.7. Then there are two in gradle.user.home. One for dependencies and one for the build script compilations. Looking into the build script cache it seems like these caches uses absolute path for the build scripts. I just wonder if it would be better to have the scripts caches in the project directory with relative paths instead. That should make it possible to reuse the script classes between different concurrent jobs that have a copy of the workspace.
Putting the gradle.user.home into the workspace won’t do it since the caches seems to work on absolut paths.