Repository: hbase Updated Branches: refs/heads/HBASE-18467 b0f24d21c -> d0277b3c6
HBASE-18467 move the try block's start to cover more. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d0277b3c Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d0277b3c Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d0277b3c Branch: refs/heads/HBASE-18467 Commit: d0277b3c66ea00dc8050964ded14294950963a5a Parents: b0f24d2 Author: Sean Busbey <[email protected]> Authored: Tue Aug 22 21:53:40 2017 -0500 Committer: Sean Busbey <[email protected]> Committed: Tue Aug 22 21:53:40 2017 -0500 ---------------------------------------------------------------------- dev-support/Jenkinsfile | 58 ++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/d0277b3c/dev-support/Jenkinsfile ---------------------------------------------------------------------- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 4f41cbf..059a444 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -365,36 +365,36 @@ END post { always { script { - sh "printenv" - def results = ["${env.OUTPUT_RELATIVE_GENERAL}/failure", "${env.OUTPUT_RELATIVE_GENERAL}/success", - "${env.OUTPUT_RELATIVE_JDK7}/failure", "${env.OUTPUT_RELATIVE_JDK7}/success", - "${env.OUTPUT_RELATIVE_JDK8}/failure", "${env.OUTPUT_RELATIVE_JDK8}/success", - 'src_tarball_failure', 'src_tarball_success'] - echo env.BRANCH_NAME - echo env.BUILD_URL - echo currentBuild.result - echo currentBuild.durationString - def comment = "Results for branch ${env.BRANCH_NAME}, done in ${currentBuild.durationString}\n" - if (currentBuild.result == "SUCCESS") { - comment += ' (/) *{color:green}+1 overall{color}*\\' - } else { - comment += '(x) *{color:red}-1 overall{color}*\\' - // Ideally get the committer our of the change and @ mention them in the per-jira comment - comment += 'Committer, please check your recent inclusion of a patch for this issue.\\' - } - comment += " [build ${currentBuild.displayName} on builds.a.o|${env.BUILD_URL}]: ${currentBuild.result}\\----\\details (if available):\n" - //echo "[DEBUG] Comment so far: " - //echo comment - echo "" - echo "[DEBUG] trying to aggregate step-wise results" - comment += results.collect { fileExists(file: it) ? readFile(file: it) : "" }.join("\n") - echo "[INFO] Comment:" - echo comment - echo "" - echo "[INFO] There are ${currentBuild.changeSets.size()} change sets." - def seenJiras = [] - def jiraPattern = ~/HBASE-[0-9]+/ 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", + "${env.OUTPUT_RELATIVE_JDK8}/failure", "${env.OUTPUT_RELATIVE_JDK8}/success", + 'src_tarball_failure', 'src_tarball_success'] + echo env.BRANCH_NAME + echo env.BUILD_URL + echo currentBuild.result + echo currentBuild.durationString + def comment = "Results for branch ${env.BRANCH_NAME}, done in ${currentBuild.durationString}\n" + if (currentBuild.result == "SUCCESS") { + comment += ' (/) *{color:green}+1 overall{color}*\\' + } else { + comment += '(x) *{color:red}-1 overall{color}*\\' + // Ideally get the committer our of the change and @ mention them in the per-jira comment + comment += 'Committer, please check your recent inclusion of a patch for this issue.\\' + } + comment += " [build ${currentBuild.displayName} on builds.a.o|${env.BUILD_URL}]: ${currentBuild.result}\\----\\details (if available):\n" + //echo "[DEBUG] Comment so far: " + //echo comment + echo "" + echo "[DEBUG] trying to aggregate step-wise results" + comment += results.collect { fileExists(file: it) ? readFile(file: it) : "" }.join("\n") + echo "[INFO] Comment:" + echo comment + echo "" + echo "[INFO] There are ${currentBuild.changeSets.size()} change sets." + def seenJiras = [] + def jiraPattern = ~/HBASE-[0-9]+/ for ( changelist in currentBuild.changeSets ) { if ( changelist.isEmptySet() ) { echo "[DEBUG] change set was empty, skipping JIRA comments."
