Skip to content

Commit 313795d

Browse files
committed
Different cache handling
1 parent a27c02b commit 313795d

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.cache/.gitkeep

Whitespace-only changes.

Jenkinsfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
pipeline {
44
agent {
55
dockerfile {
6-
// We're trying to recreate what rundocker.sh does. Jenkins
7-
// will already run as the Jenkins user with the checkout
8-
// mounted and set to the current workdir. What we need is
9-
// to mount the cache volume at the expected location and
10-
// set HOME to that path.
11-
args '--volume "$WORKSPACE/.cache:/cache" --env HOME=/cache'
12-
136
// Try to use the same node to make use of caching.
147
reuseNode true
158
}
@@ -22,6 +15,10 @@ pipeline {
2215

2316
// Make p4a always rebuild the distribution to avoid caching issues.
2417
P4A_OPTIONS = '--force-build'
18+
19+
// Both p4a and gradle cache outputs in the home directory.
20+
// Point it inside the workspace.
21+
HOME = "$WORKSPACE/_cache"
2522
}
2623

2724

0 commit comments

Comments
 (0)