[ 
https://issues.apache.org/jira/browse/BEAM-4400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523014#comment-16523014
 ] 

Udi Meiri commented on BEAM-4400:
---------------------------------

I've spent the better of a day looking at this. Results:
1. Ran this docker container locally: 
https://hub.docker.com/r/gradle/build-cache-node/
2. Configured the Gradle for Beam to use said remote cache from step 1.
3. Ran ./gradlew --info :beam-java-core-something:test
Verified on the remote cache's status page that the cache was no longer empty.
4. Ran ./gradlew clean --quiet
5. Ran the command from step 3 again.
Expected: remote cache to speed up gradle build. Tests should not run again.
What I got: cache wasn't used, new entries written to cache (count of entries 
went up). I saw tests being run.

I expected the cache to be used since the source hasn't changed
Perhaps the 'clean' task does more than I thought it does.


> Integrate Jenkins Job Cacher Plugin for improved build caching
> --------------------------------------------------------------
>
>                 Key: BEAM-4400
>                 URL: https://issues.apache.org/jira/browse/BEAM-4400
>             Project: Beam
>          Issue Type: Improvement
>          Components: build-system
>            Reporter: Scott Wegner
>            Assignee: Udi Meiri
>            Priority: Minor
>
> See discussion on 
> [dev|https://lists.apache.org/thread.html/c59289787c665c7732df4095bda0877637eee59e3add4d26a11f6b7f@%3Cdev.beam.apache.org%3E].
>  With the new Gradle build, we are now able to build incrementally, but are 
> not yet taking advantage of it on Jenkins. This would give us the benefit of 
> much faster pre-commits for files that aren't changed. For example, A change 
> in the Python which doesn't touch any Java would not need to re-run Java 
> pre-commits.
> By default, Gradle uses a build cache local to the workspace, and in Jenkins 
> the workspace gets nuked on each build. There is a [Jenkins Job Cacher 
> Plugin|https://wiki.jenkins.io/display/JENKINS/Job+Cacher+Plugin] which 
> solves this exact plugin and integrates with Gradle's build cache support. I 
> believe all we need to do is enable and configure this plugin to realize the 
> benefits of incremental builds.
> To enable the plugin, we likely need to reach out the Apache INFRA team.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to