summaryrefslogtreecommitdiffstats
path: root/jjb/infra/bifrost-verify.sh
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2016-12-07 23:48:05 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-07 23:48:05 +0000
commit5b209dfe05d8f805396417975f36d1d78c83affe (patch)
treecd0424580b58f20bca89dace7838c547b03f0c2c /jjb/infra/bifrost-verify.sh
parentd6e609cd29998ea7c146eea48fbaa40994f4e29f (diff)
parente9ba081111ced93a8ecb5972a024e235d9e8fff7 (diff)
Merge "jjb: infra: bifrost-verify.sh: Make sure the cache directory exists"
Diffstat (limited to 'jjb/infra/bifrost-verify.sh')
-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