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 19b1cd3 Revert "disable jiraIssueSelector"
19b1cd3 is described below
commit 19b1cd3c65416467eb3d77d155b6fa53425f343f
Author: rfscholte <[email protected]>
AuthorDate: Fri Jul 16 20:47:02 2021 +0200
Revert "disable jiraIssueSelector"
This reverts commit c963ecde67e7821fad140088124b442b1daac7f5.
---
vars/jenkinsNotify.groovy | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/vars/jenkinsNotify.groovy b/vars/jenkinsNotify.groovy
index 8fd5d0d..1f695cd 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(', ')}"