HBASE-24838 The pre commit job fails to archive surefire reports (#2224)
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
726756a8b9
commit
206d0a02f2
|
@ -101,7 +101,7 @@ pipeline {
|
||||||
passwordVariable: 'GITHUB_PASSWORD',
|
passwordVariable: 'GITHUB_PASSWORD',
|
||||||
usernameVariable: 'GITHUB_USER'
|
usernameVariable: 'GITHUB_USER'
|
||||||
)]) {
|
)]) {
|
||||||
sh label: 'test-patch', script: '''
|
sh label: 'test-patch', script: '''#!/bin/bash -e
|
||||||
hostname -a ; pwd ; ls -la
|
hostname -a ; pwd ; ls -la
|
||||||
printenv 2>&1 | sort
|
printenv 2>&1 | sort
|
||||||
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
||||||
|
@ -128,7 +128,7 @@ pipeline {
|
||||||
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
||||||
cleanup() {
|
cleanup() {
|
||||||
script {
|
script {
|
||||||
sh label: 'Cleanup workspace', script: '''
|
sh label: 'Cleanup workspace', script: '''#!/bin/bash -e
|
||||||
# See YETUS-764
|
# See YETUS-764
|
||||||
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
||||||
echo "test-patch process appears to still be running: killing"
|
echo "test-patch process appears to still be running: killing"
|
||||||
|
@ -187,7 +187,7 @@ pipeline {
|
||||||
passwordVariable: 'GITHUB_PASSWORD',
|
passwordVariable: 'GITHUB_PASSWORD',
|
||||||
usernameVariable: 'GITHUB_USER'
|
usernameVariable: 'GITHUB_USER'
|
||||||
)]) {
|
)]) {
|
||||||
sh label: 'test-patch', script: '''
|
sh label: 'test-patch', script: '''#!/bin/bash -e
|
||||||
hostname -a ; pwd ; ls -la
|
hostname -a ; pwd ; ls -la
|
||||||
printenv 2>&1 | sort
|
printenv 2>&1 | sort
|
||||||
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
||||||
|
@ -199,7 +199,7 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
junit testResults: "${WORKDIR_REL}/${SRC_REL}/**/target/**/TEST-*.xml", allowEmptyResults: true
|
junit testResults: "${WORKDIR_REL}/${SRC_REL}/**/target/**/TEST-*.xml", allowEmptyResults: true
|
||||||
sh label: 'zip surefire reports', script: '''
|
sh label: 'zip surefire reports', script: '''#!/bin/bash -e
|
||||||
if [ -d "${PATCHDIR}/archiver" ]; then
|
if [ -d "${PATCHDIR}/archiver" ]; then
|
||||||
count=$(find "${PATCHDIR}/archiver" -type f | wc -l)
|
count=$(find "${PATCHDIR}/archiver" -type f | wc -l)
|
||||||
if [[ 0 -ne ${count} ]]; then
|
if [[ 0 -ne ${count} ]]; then
|
||||||
|
@ -228,7 +228,7 @@ pipeline {
|
||||||
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
||||||
cleanup() {
|
cleanup() {
|
||||||
script {
|
script {
|
||||||
sh label: 'Cleanup workspace', script: '''
|
sh label: 'Cleanup workspace', script: '''#!/bin/bash -e
|
||||||
# See YETUS-764
|
# See YETUS-764
|
||||||
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
||||||
echo "test-patch process appears to still be running: killing"
|
echo "test-patch process appears to still be running: killing"
|
||||||
|
@ -287,7 +287,7 @@ pipeline {
|
||||||
passwordVariable: 'GITHUB_PASSWORD',
|
passwordVariable: 'GITHUB_PASSWORD',
|
||||||
usernameVariable: 'GITHUB_USER'
|
usernameVariable: 'GITHUB_USER'
|
||||||
)]) {
|
)]) {
|
||||||
sh label: 'test-patch', script: '''
|
sh label: 'test-patch', script: '''#!/bin/bash -e
|
||||||
hostname -a ; pwd ; ls -la
|
hostname -a ; pwd ; ls -la
|
||||||
printenv 2>&1 | sort
|
printenv 2>&1 | sort
|
||||||
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
echo "[INFO] Launching Yetus via ${YETUS_DRIVER}"
|
||||||
|
@ -299,7 +299,7 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
junit testResults: "${WORKDIR_REL}/${SRC_REL}/**/target/**/TEST-*.xml", allowEmptyResults: true
|
junit testResults: "${WORKDIR_REL}/${SRC_REL}/**/target/**/TEST-*.xml", allowEmptyResults: true
|
||||||
sh label: 'zip surefire reports', script: '''
|
sh label: 'zip surefire reports', script: '''#!/bin/bash -e
|
||||||
if [ -d "${PATCHDIR}/archiver" ]; then
|
if [ -d "${PATCHDIR}/archiver" ]; then
|
||||||
count=$(find "${PATCHDIR}/archiver" -type f | wc -l)
|
count=$(find "${PATCHDIR}/archiver" -type f | wc -l)
|
||||||
if [[ 0 -ne ${count} ]]; then
|
if [[ 0 -ne ${count} ]]; then
|
||||||
|
@ -328,7 +328,7 @@ pipeline {
|
||||||
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
||||||
cleanup() {
|
cleanup() {
|
||||||
script {
|
script {
|
||||||
sh label: 'Cleanup workspace', script: '''
|
sh label: 'Cleanup workspace', script: '''#!/bin/bash -e
|
||||||
# See YETUS-764
|
# See YETUS-764
|
||||||
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
if [ -f "${PATCHDIR}/pidfile.txt" ]; then
|
||||||
echo "test-patch process appears to still be running: killing"
|
echo "test-patch process appears to still be running: killing"
|
||||||
|
@ -357,7 +357,7 @@ pipeline {
|
||||||
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
// Jenkins pipeline jobs fill slaves on PRs without this :(
|
||||||
cleanup() {
|
cleanup() {
|
||||||
script {
|
script {
|
||||||
sh label: 'Cleanup workspace', script: '''
|
sh label: 'Cleanup workspace', script: '''#!/bin/bash -e
|
||||||
# See HADOOP-13951
|
# See HADOOP-13951
|
||||||
chmod -R u+rxw "${WORKSPACE}"
|
chmod -R u+rxw "${WORKSPACE}"
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue