This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-env.git


The following commit(s) were added to refs/heads/master by this push:
     new c963ecd  disable jiraIssueSelector
c963ecd is described below

commit c963ecde67e7821fad140088124b442b1daac7f5
Author: rfscholte <[email protected]>
AuthorDate: Fri Jul 16 20:30:27 2021 +0200

    disable jiraIssueSelector
---
 vars/jenkinsNotify.groovy | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 1f695cd..8fd5d0d 100644
--- a/vars/jenkinsNotify.groovy
+++ b/vars/jenkinsNotify.groovy
@@ -65,23 +65,23 @@ def call(Map params = [:]) {
     // comment on any jira tickets
     def jiraIssues = null
     def jiraMavens = []
-    try {
-        jiraIssues = jiraIssueSelector(issueSelector: [$class: 
'DefaultIssueSelector'])
-        for (def jiraIssue in jiraIssues) {
-            // only comment on maven's issues, all our trackers start with M
-            // may end up commenting on other TLPs in some cases but should be 
very rare
-            if (jiraIssue.startsWith("M")) {
-                try {
-                    jiraComment body: "${messageSubject}\n\n${messageBody}", 
issueKey: jiraIssue
-                } catch (e) {
-                    echo "WARNING: Could not update ${jiraIssue}: ${e.message}"
-                }
-                jiraMavens += jiraIssue
-            }
-        }
-    } catch (e) {
-        echo "WARNING: Could not determine JIRA issues: ${e.message}"
-    }
+//    try {
+//        jiraIssues = jiraIssueSelector(issueSelector: [$class: 
'DefaultIssueSelector'])
+//        for (def jiraIssue in jiraIssues) {
+//            // only comment on maven's issues, all our trackers start with M
+//            // may end up commenting on other TLPs in some cases but should 
be very rare
+//            if (jiraIssue.startsWith("M")) {
+//                try {
+//                    jiraComment body: "${messageSubject}\n\n${messageBody}", 
issueKey: jiraIssue
+//                } catch (e) {
+//                    echo "WARNING: Could not update ${jiraIssue}: 
${e.message}"
+//                }
+//                jiraMavens += jiraIssue
+//            }
+//        }
+//    } catch (e) {
+//        echo "WARNING: Could not determine JIRA issues: ${e.message}"
+//    }
     // set the build description to the jira ticket id's
     if (!jiraMavens.empty) {
         currentBuild.description = "${jiraMavens.join(', ')}"

Reply via email to