diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2016-12-07 23:48:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-07 23:48:05 +0000 |
commit | 5b209dfe05d8f805396417975f36d1d78c83affe (patch) | |
tree | cd0424580b58f20bca89dace7838c547b03f0c2c /jjb/infra | |
parent | d6e609cd29998ea7c146eea48fbaa40994f4e29f (diff) | |
parent | e9ba081111ced93a8ecb5972a024e235d9e8fff7 (diff) |
Merge "jjb: infra: bifrost-verify.sh: Make sure the cache directory exists"
Diffstat (limited to 'jjb/infra')
-rwxr-xr-x | jjb/infra/bifrost-verify.sh | 3 |
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 |