From 09a16c088cbda0fe4c5d2ff8cc7de4e156fa8a10 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Thu, 11 Oct 2018 00:02:09 -0500 Subject: [PATCH] HBASE-21103 nightly job should make sure cached yetus will run. --- dev-support/Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 0abeae0564..c2313e27a0 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -64,8 +64,9 @@ echo "Ensure we have a copy of Apache Yetus." if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" - if [ ! -d "${YETUS_DIR}" ]; then + if ! "${YETUS_DIR}/bin/test-patch" --version >/dev/null 2>&1 ; then echo "New download of Apache Yetus version ${YETUS_RELEASE}." + rm -rf "${YETUS_DIR}" rm -rf "${WORKSPACE}/.gpg" mkdir -p "${WORKSPACE}/.gpg" chmod -R 700 "${WORKSPACE}/.gpg" -- 2.15.1 (Apple Git-101)