From 828c767eaa483fbf0898ac33c82523f06fc85fb9 Mon Sep 17 00:00:00 2001 From: smlambert Date: Mon, 14 May 2018 00:08:12 -0400 Subject: [PATCH] Archive test results if build UNSTABLE Signed-off-by: smlambert --- buildenv/jenkins/common/test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildenv/jenkins/common/test b/buildenv/jenkins/common/test index cc2cdddc8f9..ebbb497ea74 100644 --- a/buildenv/jenkins/common/test +++ b/buildenv/jenkins/common/test @@ -96,6 +96,10 @@ def publish() { junit allowEmptyResults: true, keepLongStdio: true, testResults: '**/junitreports/**/*.xml' step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml']) step([$class: "TapPublisher", testResults: "**/*.tap"]) + if (currentBuild.result == 'UNSTABLE') { + sh "tar -zcf test_output${TEST_TARGET}.tar.gz $WORKSPACE/openj9/test/TestConfig/test_output_*" + archiveArtifacts artifacts: "**/test_output${TEST_TARGET}.tar.gz", fingerprint: true, allowEmptyArchive: true + } } } }