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

Signed-off-by: Mike Drob <mdrob@apache.org>
(cherry picked from commit 5b6b85aed6)
This commit is contained in:
Sean Busbey 2018-10-11 10:32:12 -05:00
parent ed7beacf98
commit 9050402ff2
1 changed files with 2 additions and 1 deletions

View File

@ -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"