Skip to content

Commit 6fb2117

Browse files
committed
Use Jenkins workspace for cache
Pre-create the directory in the repo so it's owned by the jenkins user and not automatically created by docker as root.
1 parent 1108120 commit 6fb2117

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.cache/.gitkeep

Whitespace-only changes.

Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ pipeline {
88
// mounted and set to the current workdir. What we need is
99
// to mount the cache volume at the expected location and
1010
// set HOME to that path.
11-
args '--mount type=volume,src=kolibri-android-cache,dst=/cache ' +
12-
'--env HOME=/cache'
11+
args '--volume "$WORKSPACE/.cache:/cache" --env HOME=/cache'
1312

1413
// Try to use the same node to make use of caching.
1514
reuseNode true

0 commit comments

Comments
 (0)