HBASE-20335 ensure each stage of the nightly job gathers machine information.
* fix archiving for src tarball stage's machine info * stop nightly wrapper desroying the output dir. Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
73275f1774
commit
f695ecb2db
|
@ -150,6 +150,8 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
||||||
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
||||||
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
|
echo "got the following saved stats in '${OUTPUT_DIR_RELATIVE}/machine'"
|
||||||
|
ls -lh "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
'''
|
'''
|
||||||
// TODO roll this into the hbase_nightly_yetus script
|
// TODO roll this into the hbase_nightly_yetus script
|
||||||
sh '''#!/usr/bin/env bash
|
sh '''#!/usr/bin/env bash
|
||||||
|
@ -210,6 +212,8 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
||||||
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
||||||
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
|
echo "got the following saved stats in '${OUTPUT_DIR_RELATIVE}/machine'"
|
||||||
|
ls -lh "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
'''
|
'''
|
||||||
sh '''#!/usr/bin/env bash
|
sh '''#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
@ -283,6 +287,8 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
||||||
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
||||||
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
|
echo "got the following saved stats in '${OUTPUT_DIR_RELATIVE}/machine'"
|
||||||
|
ls -lh "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
'''
|
'''
|
||||||
sh '''#!/usr/bin/env bash
|
sh '''#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
@ -363,6 +369,8 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
rm -rf "${OUTPUT_DIR}" && mkdir "${OUTPUT_DIR}"
|
||||||
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
rm -rf "${OUTPUT_DIR}/machine" && mkdir "${OUTPUT_DIR}/machine"
|
||||||
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
"${BASEDIR}/dev-support/gather_machine_environment.sh" "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
|
echo "got the following saved stats in '${OUTPUT_DIR_RELATIVE}/machine'"
|
||||||
|
ls -lh "${OUTPUT_DIR_RELATIVE}/machine"
|
||||||
'''
|
'''
|
||||||
sh '''#!/usr/bin/env bash
|
sh '''#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
@ -437,6 +445,8 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
set -e
|
set -e
|
||||||
rm -rf "output-srctarball/machine" && mkdir "output-srctarball/machine"
|
rm -rf "output-srctarball/machine" && mkdir "output-srctarball/machine"
|
||||||
"${BASEDIR}/dev-support/gather_machine_environment.sh" "output-srctarball/machine"
|
"${BASEDIR}/dev-support/gather_machine_environment.sh" "output-srctarball/machine"
|
||||||
|
echo "got the following saved stats in 'output-srctarball/machine'"
|
||||||
|
ls -lh "output-srctarball/machine"
|
||||||
'''
|
'''
|
||||||
sh """#!/bin/bash -e
|
sh """#!/bin/bash -e
|
||||||
if "${env.BASEDIR}/dev-support/hbase_nightly_source-artifact.sh" \
|
if "${env.BASEDIR}/dev-support/hbase_nightly_source-artifact.sh" \
|
||||||
|
@ -456,6 +466,7 @@ curl -L -o personality.sh "${env.PROJECT_PERSONALITY}"
|
||||||
always {
|
always {
|
||||||
stash name: 'srctarball-result', includes: "output-srctarball/commentfile"
|
stash name: 'srctarball-result', includes: "output-srctarball/commentfile"
|
||||||
archive 'output-srctarball/*'
|
archive 'output-srctarball/*'
|
||||||
|
archive 'output-srctarball/**/*'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,8 +91,11 @@ if [[ true == "${DEBUG}" ]]; then
|
||||||
YETUS_ARGS=("--debug" "${YETUS_ARGS[@]}")
|
YETUS_ARGS=("--debug" "${YETUS_ARGS[@]}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "${OUTPUT_DIR}"
|
if [[ ! -d "${OUTPUT_DIR}" ]]; then
|
||||||
mkdir -p "${OUTPUT_DIR}"
|
echo "[ERROR] the specified output directory must already exist: '${OUTPUT_DIR}'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then
|
if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then
|
||||||
YETUS_ARGS=("--shelldocs=${WORKSPACE}/yetus-${YETUS_RELEASE}/bin/shelldocs" "${YETUS_ARGS[@]}")
|
YETUS_ARGS=("--shelldocs=${WORKSPACE}/yetus-${YETUS_RELEASE}/bin/shelldocs" "${YETUS_ARGS[@]}")
|
||||||
TESTPATCHBIN="${WORKSPACE}/yetus-${YETUS_RELEASE}/bin/test-patch"
|
TESTPATCHBIN="${WORKSPACE}/yetus-${YETUS_RELEASE}/bin/test-patch"
|
||||||
|
|
Loading…
Reference in New Issue