Merge "jjb: infra: bifrost-verify.sh: Make sure the cache directory exists"
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 7 Dec 2016 23:48:05 +0000 (23:48 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 7 Dec 2016 23:48:05 +0000 (23:48 +0000)
jjb/infra/bifrost-verify.sh

index ded4ed4..9fbb1d0 100755 (executable)
@@ -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