diff options
author | Markos Chandras <mchandras@suse.de> | 2016-10-03 14:26:22 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2016-10-03 14:26:22 +0100 |
commit | 7f82b5f5ab63330bdd5d3882f11e01da2611f654 (patch) | |
tree | 4d35535211340e2a4f46b5501c95dab6a3b03d26 | |
parent | 7d54ee907c9a116e005bf9666ad566e494ec78a0 (diff) |
jjb: infra: Fix ownership for the cache directory
Fixes the following error when the ${HOME}/.cache permissions are bad:
The directory '/home/jenkins/.cache/pip/http' or its parent directory is
not owned by the current user and the cache has been disabled. Please
check the permissions and owner of that directory. If executing pip with
sudo, you may want sudo's -H flag.
Change-Id: I16310817e1f36bd8086e196ef61ec10c09ad7366
Signed-off-by: Markos Chandras <mchandras@suse.de>
-rwxr-xr-x | jjb/infra/bifrost-verify.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jjb/infra/bifrost-verify.sh b/jjb/infra/bifrost-verify.sh index 759b50b8e..f7920a36f 100755 --- a/jjb/infra/bifrost-verify.sh +++ b/jjb/infra/bifrost-verify.sh @@ -18,6 +18,7 @@ function fix_ownership() { echo "Not running as part of Jenkins. Handle the logs manually." else sudo chown -R jenkins:jenkins $WORKSPACE + sudo chown -R jenkins:jenkins ${HOME}/.cache fi } @@ -30,6 +31,9 @@ fi # remove previously cloned repos sudo /bin/rm -rf /opt/bifrost /opt/puppet-infracloud /opt/stack /opt/releng +# Fix up permissions +fix_ownership + # clone all the repos first and checkout the patch afterwards sudo git clone https://git.openstack.org/openstack/bifrost /opt/bifrost sudo git clone https://git.openstack.org/openstack-infra/puppet-infracloud /opt/puppet-infracloud |