summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2016-11-29 12:34:36 +0000
committerMarkos Chandras <mchandras@suse.de>2016-11-29 17:41:58 +0000
commite9ba081111ced93a8ecb5972a024e235d9e8fff7 (patch)
treedf3ac3ebc2c05bef888d8b217ed1cc65bea4ed13 /jjb
parent58e754eb9afa05c9bb6c90da1f1a6882b3e866cd (diff)
jjb: infra: bifrost-verify.sh: Make sure the cache directory exists
Fixes the following problem on new slaves: chown: cannot access '/home/jenkins/.cache': No such file or directory Change-Id: Ia461acd44466819e47a459e23ee6fd47ac1bad69 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/infra/bifrost-verify.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/jjb/infra/bifrost-verify.sh b/jjb/infra/bifrost-verify.sh
index ded4ed463..9fbb1d0d9 100755
--- a/jjb/infra/bifrost-verify.sh
+++ b/jjb/infra/bifrost-verify.sh
@@ -17,6 +17,9 @@ function fix_ownership() {
if [ -z "${JOB_URL+x}" ]; then
echo "Not running as part of Jenkins. Handle the logs manually."
else
+ # Make sure cache exists
+ [[ ! -d ${HOME}/.cache ]] && mkdir ${HOME}/.cache
+
sudo chown -R jenkins:jenkins $WORKSPACE
sudo chown -R jenkins:jenkins ${HOME}/.cache
fi