I have finally managed to get some additional log information out of this plugin I added a few lines of logging within MentionedInCommitStrategy.java as follows:
this._logger.log(Level.FINE,"Message text BEGIN:"); this._logger.log(Level.FINE,msg); this._logger.log(Level.FINE,":Message text END"); this._logger.log(Level.FINE,"JiraPrefix BEGIN:"); this._logger.log(Level.FINE,validJiraPrefix); this._logger.log(Level.FINE,":JiraPrefix END");
Trying to understand why the regex match would fail Here is the resulting log message for a single test issue:
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
Message text BEGIN:
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
Jira key: EXITEVODEV-1309 Comments: Test Jira updater
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
:Message text END
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
JiraPrefix BEGIN:
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
EXITEVODEV
Jul 26, 2016 10:53:00 AM FINE org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
:JiraPrefix END
So, there seems to be some kind of fundamental issue with the way the regex matcher is being used. Clearly the message text contains the regex being searched for, yet the matcher is failing. |