From 806d24e5b7ec92b62fd4d1fb59a5aa4992ab9df0 Mon Sep 17 00:00:00 2001 From: Thomas Serlin Date: Thu, 10 Jan 2019 12:09:39 -0500 Subject: [PATCH] nfs-ganesha: clean up Jenkins slave The daily nfs-ganesha builds for CentOS were consistently failing because cmake could not properly find the RGW library, e.g.: "Could NOT find RGW: Found unsuitable version "0.0.0", but required is at least "1.1.6" (found )" Removing leftover ceph packages from previous Jenkins jobs seems to fix the issue. Signed-off-by: Thomas Serlin --- nfs-ganesha/build/build_rpm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nfs-ganesha/build/build_rpm b/nfs-ganesha/build/build_rpm index 67c5eca4..4ed6fa71 100644 --- a/nfs-ganesha/build/build_rpm +++ b/nfs-ganesha/build/build_rpm @@ -9,6 +9,11 @@ fi ## Get some basic information about the system and the repository RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # sytem release +# Clean up Jenkins slave before each build +sudo yum -y clean all +sudo yum -y remove librgw-devel librgw2 librados-devel librados3 libcephfs-devel libcephfs2 +sudo yum -y autoremove + # Get .repo file from appropriate shaman build REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$RELEASE/flavors/default/repo" TIME_LIMIT=1200 -- 2.39.5