Repository: hbase Updated Branches: refs/heads/HBASE-18467 b03527bc1 -> a22f0bbbc
HBASE-18467 result of help from Andrew B. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2c757c0f Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2c757c0f Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2c757c0f Branch: refs/heads/HBASE-18467 Commit: 2c757c0fb4dc1c426d55e79a16e1bff3cc0f0baf Parents: b03527b Author: Sean Busbey <bus...@apache.org> Authored: Mon Aug 21 10:01:03 2017 -0500 Committer: Sean Busbey <bus...@apache.org> Committed: Mon Aug 21 10:01:03 2017 -0500 ---------------------------------------------------------------------- dev-support/Jenkinsfile | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/2c757c0f/dev-support/Jenkinsfile ---------------------------------------------------------------------- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index b4aacc5..7f59b7b 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -389,31 +389,34 @@ END echo "[INFO] Comment:" echo comment echo "" + echo "[DEBUG] changeset toString: ${currentBuild.changeSets}" + echo "[INFO] There are ${currentBuild.changeSets.size()} change sets." + def seenJiras = [] + for ( changelist in currentBuild.changeSets ) { + echo "[DEBUG] changelist toString: ${currentBuild.changeSets}" // if ( currentBuild.changeSets.isEmptySet() ) { // echo "[DEBUG] change set was empty, skipping JIRA comments." // } else { // echo "[DEBUG] there are changes in the change set (${currentBuild.changeSets}). Attempting to post comments." // } - echo "[DEBUG] changeset toString: ${currentBuild.changeSets}" - echo "[INFO] There are ${currentBuild.changeSets.size} changes." - def seenJiras = [] - for ( change in currentBuild.changeSets ) { - echo "change:" - echo " ${change.getAuthorName()}" - echo " ${change.getMsg()}" - echo " ${change.getMsgAnnotated()}" - echo "" - 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 + for ( change in changelist ) { + echo "change:" + echo " ${change.getAuthorName()}" + echo " ${change.getMsg()}" + echo " ${change.getMsgAnnotated()}" + echo "" + 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 } - //TODO warn if no JIRA key found in message, email committer } } }