Repository: hbase
Updated Branches:
  refs/heads/HBASE-21103 [created] c521632a1


HBASE-21103 nightly job should make sure cached yetus will run.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c521632a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c521632a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c521632a

Branch: refs/heads/HBASE-21103
Commit: c521632a1eac92b4e243b6f1f5c031681eedf6eb
Parents: ff29edc
Author: Sean Busbey <[email protected]>
Authored: Thu Oct 11 00:02:09 2018 -0500
Committer: Sean Busbey <[email protected]>
Committed: Thu Oct 11 00:02:09 2018 -0500

----------------------------------------------------------------------
 dev-support/Jenkinsfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c521632a/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index a32137a..606ff8c 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"

Reply via email to