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/20 21:30:47 UTC
[50/50] [abbrv] hbase git commit: HBASE-18467 attempt at using
jiraComment.
HBASE-18467 attempt at using jiraComment.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1abee706
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1abee706
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1abee706
Branch: refs/heads/HBASE-18467
Commit: 1abee706c3aaa7b50159305baa57d3a675b4b48a
Parents: c2537ac
Author: Sean Busbey <bu...@apache.org>
Authored: Sun Aug 20 16:29:03 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sun Aug 20 16:29:03 2017 -0500
----------------------------------------------------------------------
dev-support/Jenkinsfile | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/1abee706/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 7207ab3..6506adf 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -377,23 +377,33 @@ END
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):"
- echo "Comment so far: "
+ echo "[DEBUG] Comment so far: "
echo comment
echo ""
- echo "trying to aggregate step-wise results"
+ echo "[DEBUG] trying to aggregate step-wise results"
comment += results.collect { fileExists(file: it) ? readFile(file: it) : "\n" }.join
+ echo "[INFO] Comment:"
echo comment
- echo "${currentBuild.changeSets.size} changes"
+ echo ""
+ echo "[INFO] ${currentBuild.changeSets.size} changes"
+ def seenJiras = []
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
+ change.getMsg.findAll( /HBASE-[0-9]+/ ).each { currentIssue ->
+ echo "[DEBUG] found jira key: ${currentIssue}"
+ if ( currentIssue in seenJiras ) {
+ echo "[DEBUG] already commented on ${currentIssue}."
+ } else {
+ echo "[INFO] commenting on ${currentIssue}."
+ jiraComment issueKey: currentIssue, body: comment
+ seenJiras << currentIssue
+ }
+ }
+ //TODO warn if no JIRA key found in message, email committer
}
}
}