From b13f6868dba6fb856f8b9e59a5d658c8669a63ef Mon Sep 17 00:00:00 2001 From: Thomas Serlin Date: Fri, 22 Mar 2019 14:05:44 -0400 Subject: [PATCH] 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 --- nfs-ganesha/build/build_rpm | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5