]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha: clean out yum cache before build 1266/head
authorThomas Serlin <tserlin@redhat.com>
Fri, 22 Mar 2019 18:05:44 +0000 (14:05 -0400)
committerThomas Serlin <tserlin@redhat.com>
Fri, 22 Mar 2019 18:09:37 +0000 (14:09 -0400)
We occasionally see "HTTP Error 404 - Not Found" when the jenkins slave
tries to contact the EPEL mirrors. Clean up the entire /var/cache/yum/
directory and see if that helps.

Reference: https://wiki.centos.org/yum-errors

nfs-ganesha/build/build_rpm

index 4ed6fa71f9ba32bd845914577625cd3c29af1105..60f0fcbc5153601e96cb831b152012447613554e 100644 (file)
@@ -10,6 +10,7 @@ fi
 RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # sytem release
 
 # Clean up Jenkins slave before each build
+sudo rm -rf /var/cache/yum/*
 sudo yum -y clean all
 sudo yum -y remove librgw-devel librgw2 librados-devel librados3 libcephfs-devel libcephfs2
 sudo yum -y autoremove