You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2017/08/09 13:58:09 UTC
hbase git commit: HBASE-18467 WIP assemble comment contents.
Repository: hbase
Updated Branches:
refs/heads/HBASE-18467 cfb1edcc7 -> 0d3109a9e
HBASE-18467 WIP assemble comment contents.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0d3109a9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0d3109a9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0d3109a9
Branch: refs/heads/HBASE-18467
Commit: 0d3109a9e24e0c0f124ce860aacfe86c28898a4a
Parents: cfb1edc
Author: Sean Busbey <bu...@apache.org>
Authored: Wed Aug 9 08:55:43 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Wed Aug 9 08:57:54 2017 -0500
----------------------------------------------------------------------
dev-support/Jenkinsfile | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/0d3109a9/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 6022721..b9ed936 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -360,15 +360,36 @@ END
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
- for ( change in changeSets ) {
+ def comment = "Results for branch ${env.BRANCH_NAME}, done in ${currentBuild.durationString}\n"
+ if (currentBuild.result == "SUCCESS") {
+ comment += ' (/) *{color:green}+1 overall{color}*\n'
+ } else {
+ comment += '(x) *{color:red}-1 overall{color}* \n'
+ // 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.\n'
+ }
+ comment += " [build ${currentBuild.displayName} on builds.a.o|${env.BUILD_URL]\n----\ndetails (if available):"
+ comment += results.collect { fileExists(file: it) ? readFile(file: it) : "" }.join
+ echo comment
+ echo "${currentBuild.changeSets.size} changes"
+ for ( change in currentBuild.changeSets ) {
echo "change:"
echo " ${change.getAuthor}"
echo " ${change.getMsg}"
echo " ${change.getMsgAnnotated}"
+ echo ""
+ // figure out jira from the message
+ // dedup jiras we already commented on
+ // comment, something like
+ // jiraComment issueKey: currentIssue, body: comment
}
}
}