hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [41/50] [abbrv] hbase git commit: HBASE-18467 test out the fix for JENKINS-46358.
Date Thu, 14 Sep 2017 04:00:02 GMT
HBASE-18467 test out the fix for JENKINS-46358.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2f542e8d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2f542e8d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2f542e8d

Branch: refs/heads/HBASE-18467
Commit: 2f542e8d40585478506d3695c6a05a0e044d90fe
Parents: e783153
Author: Sean Busbey <busbey@apache.org>
Authored: Mon Sep 11 02:43:10 2017 -0500
Committer: Sean Busbey <busbey@apache.org>
Committed: Wed Sep 13 22:51:11 2017 -0500

----------------------------------------------------------------------
 dev-support/Jenkinsfile | 30 +-----------------------------
 1 file changed, 1 insertion(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2f542e8d/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 012a9c8..8b61e7d 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -395,15 +395,6 @@ END
            echo "[INFO] There are ${currentBuild.changeSets.size()} change sets."
            def seenJiras = []
            for (int i = 0; i < currentBuild.changeSets.size(); i++) {
-/*
-             def changelist = currentBuild.changeSets.get(i)
-             if ( changelist.isEmptySet() ) {
-               echo "[DEBUG] change set was empty, skipping JIRA comments."
-             } else {
-               echo "[DEBUG] there are changes in the change set. Attempting to post comments."
-             }
-             def changes = changelist.getItems()
-*/
              def changes = currentBuild.changeSets.get(i).getItems()
              for (int j = 0; j < changes.length; j++) {
                def change = changes[j]
@@ -414,26 +405,7 @@ END
                echo "	${change.commitId}"
                echo "     ${change.author}"
                echo ""
-               // Start workaround for JENKINS-46358
-               // Start workaround for unknown jenkins error where writeFile requires a serialization
-               //writeFile file: 'tmp_commit_file', text: msg
-               sh  """#!/usr/bin/env bash
-                 cat << 'EOF' > tmp_commit_file
-${msg}
-EOF
-                 echo 'wrote message into file.'
-                 cat tmp_commit_file
-                 grep -o -E 'HBASE-[0-9]+' 'tmp_commit_file' >matched_jiras
-                 echo "finished filtering via grep."
-                 cat matched_jiras
-"""
-               def jiras = readFile(file: 'matched_jiras').split()
-               // End workaround for JENKINS-46258
-               if (jiras.length == 0) {
-                 echo "[WARN] no JIRA key found in message, TODO email committer"
-               }
-               for (int k = 0; k < jiras.length; k++) {
-                 def currentIssue = jiras[k]
+               msg.eachMatch("HBASE-[0-9]+") { currentIssue ->
                  echo "[DEBUG] found jira key: ${currentIssue}"
                  if ( currentIssue in seenJiras ) {
                    echo "[DEBUG] already commented on ${currentIssue}."


Mime
View raw message