We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a27c02b commit 313795dCopy full SHA for 313795d
2 files changed
.cache/.gitkeep
Jenkinsfile
@@ -3,13 +3,6 @@
3
pipeline {
4
agent {
5
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
-
13
// Try to use the same node to make use of caching.
14
reuseNode true
15
}
@@ -22,6 +15,10 @@ pipeline {
22
23
16
// Make p4a always rebuild the distribution to avoid caching issues.
24
17
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"
25
26
27
0 commit comments