HBASE-18467 back to try/catch. try to avoid writeFile
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4e87e8df Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4e87e8df Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4e87e8df Branch: refs/heads/HBASE-18467 Commit: 4e87e8df76649cbedc67f037a6762b48d3754298 Parents: 55f792c Author: Sean Busbey <[email protected]> Authored: Sun Aug 27 12:03:07 2017 -0500 Committer: Sean Busbey <[email protected]> Committed: Wed Sep 13 22:51:11 2017 -0500 ---------------------------------------------------------------------- dev-support/Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/4e87e8df/dev-support/Jenkinsfile ---------------------------------------------------------------------- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 5a398e1..225ca8d 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -365,9 +365,7 @@ END post { always { script { -/* try { -*/ sh "printenv" def results = ["${env.OUTPUT_RELATIVE_GENERAL}/failure", "${env.OUTPUT_RELATIVE_GENERAL}/success", "${env.OUTPUT_RELATIVE_JDK7}/failure", "${env.OUTPUT_RELATIVE_JDK7}/success", @@ -413,11 +411,18 @@ END echo " ${change.commitId}" echo " ${change.author}" echo "" - // Workaround for JENKINS-46358 - writeFile file: 'tmp_commit_file', text: msg + // Start workaround for JENKINS-46358 + // Start workaround for unknown jenkins error where writeFile requires a serialization + //writeFile file: 'tmp_commit_file', text: msg + sh """#!/usr/bin/env bash + cat << 'EOF' > tmp_commit_file +${msg} +EOF +""" echo "finished writing commit to a file." sh "grep -o -E 'HBASE-[0-9]+' 'tmp_commit_file' >matched_jiras" echo "finished filtering via grep." + // End workaround for JENKINS-46258 def jiras = readFile(file: 'matched_jiras').split() if (jiras.length == 0) { echo "[WARN] no JIRA key found in message, TODO email committer" @@ -435,12 +440,10 @@ END } } } -/* } catch (Exception exception) { echo "Got exception: ${exception}" echo " ${exception.getStackTrace()}" } -*/ } } }
