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/09/11 07:43:17 UTC
[50/50] [abbrv] hbase git commit: HBASE-18467 wait,
I can just use the shell.
HBASE-18467 wait, I can just use the shell.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/29d0f09d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/29d0f09d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/29d0f09d
Branch: refs/heads/HBASE-18467
Commit: 29d0f09dfe368e87a93758574681aea3c6db94f5
Parents: 9fadff9
Author: Sean Busbey <bu...@apache.org>
Authored: Sun Aug 27 00:38:38 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Mon Sep 11 02:34:50 2017 -0500
----------------------------------------------------------------------
dev-support/Jenkinsfile | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/29d0f09d/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 27850a4..95d2b67 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -395,9 +395,6 @@ END
echo "[INFO] There are ${currentBuild.changeSets.size()} change sets."
def seenJiras = []
CharSequence pattern = /HBASE-[0-9]+/
- def foobar = { CharSequence foo, CharSequence bar ->
- org.codehaus.groovy.runtime.StringGroovyMethods.find(foo,bar)
- }
for ( changelist in currentBuild.changeSets ) {
if ( changelist.isEmptySet() ) {
echo "[DEBUG] change set was empty, skipping JIRA comments."
@@ -412,9 +409,14 @@ END
echo " ${change.commitId}"
echo " ${change.author}"
echo ""
- // For now, only match the first occurrance of an HBase jira id, due to JENKINS-46358
- currentIssue = foobar(msg, pattern)
- if (currentIssue != null ) {
+ // Workaround for JENKINS-46358
+ writeFile file: 'tmp_commit_file', text: msg
+ sh "grep -o -E '${pattern}' 'tmp_commit_file' >matched_jiras"
+ def jiras = readFile(file: 'matched_jiras').split()
+ if (jiras.length == 0) {
+ echo "[WARN] no JIRA key found in message, TODO email committer"
+ }
+ for (currentIssue in jiras) {
echo "[DEBUG] found jira key: ${currentIssue}"
if ( currentIssue in seenJiras ) {
echo "[DEBUG] already commented on ${currentIssue}."
@@ -423,8 +425,6 @@ END
jiraComment issueKey: currentIssue, body: comment
seenJiras << currentIssue
}
- } else {
- echo "[WARN] no JIRA key found in message, TODO email committer"
}
}
}