From: Thomas Serlin Date: Fri, 22 Mar 2019 18:05:44 +0000 (-0400) Subject: nfs-ganesha: clean out yum cache before build X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b13f6868dba6fb856f8b9e59a5d658c8669a63ef;p=ceph-build.git nfs-ganesha: clean out yum cache before build 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 --- diff --git a/nfs-ganesha/build/build_rpm b/nfs-ganesha/build/build_rpm index 4ed6fa71..60f0fcbc 100644 --- a/nfs-ganesha/build/build_rpm +++ b/nfs-ganesha/build/build_rpm @@ -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