You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2018/10/11 15:35:14 UTC

[2/8] hbase git commit: HBASE-21103 nightly job should make sure cached yetus will run.

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

Signed-off-by: Mike Drob <md...@apache.org>
(cherry picked from commit 42d7ddc6780e7b875069c3703fc68619708e1614)


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

Branch: refs/heads/branch-2
Commit: a074269ee07ad08d68d53c10c946f826f8de7fe0
Parents: c84c399
Author: Sean Busbey <bu...@apache.org>
Authored: Thu Oct 11 09:11:32 2018 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Thu Oct 11 10:29:53 2018 -0500

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/a074269e/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 58d414e..0abb366 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -80,7 +80,8 @@ pipeline {
               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
+                  rm -rf "${YETUS_DIR}"
                   "${WORKSPACE}/component/dev-support/jenkins-scripts/cache-apache-project-artifact.sh" \
                       --working-dir "${WORKSPACE}/downloads-yetus" \
                       --keys 'https://www.apache.org/dist/yetus/KEYS' \