diff options
author | Markos Chandras <mchandras@suse.de> | 2016-11-29 12:34:36 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2016-11-29 17:41:58 +0000 |
commit | e9ba081111ced93a8ecb5972a024e235d9e8fff7 (patch) | |
tree | df3ac3ebc2c05bef888d8b217ed1cc65bea4ed13 | |
parent | 58e754eb9afa05c9bb6c90da1f1a6882b3e866cd (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>
-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 |