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:16 UTC

[4/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>


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

Branch: refs/heads/branch-2.0
Commit: 5b6b85aed657edc0e476e6c7ddb4d8dcb0283d54
Parents: a060008
Author: Sean Busbey <bu...@apache.org>
Authored: Thu Oct 11 10:32:12 2018 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Thu Oct 11 10:32:12 2018 -0500

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/5b6b85ae/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index bc445a1..b89961f 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"