Skip to content

Commit

Permalink
Merge pull request #55 from QUIDDIA/master
Browse files Browse the repository at this point in the history
JENKINS-9549 - Fix linking JIRA issues in case the credentials were not passed
  • Loading branch information
Radosław Antoniuk committed Jun 10, 2015
2 parents ba862ed + 3eaed9c commit 9742558
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -7,6 +7,7 @@
import hudson.model.AbstractProject;
import hudson.scm.ChangeLogAnnotator;
import hudson.scm.ChangeLogSet.Entry;
import org.apache.commons.lang.StringUtils;

import java.io.IOException;
import java.net.MalformedURLException;
Expand Down Expand Up @@ -52,7 +53,7 @@ public void annotate(AbstractBuild<?, ?> build, Entry change, MarkupText text) {

String id = m.group(1);

if (!site.existsIssue(id)) {
if (StringUtils.isNotBlank(site.userName) && !site.existsIssue(id)) {
LOGGER.log(Level.INFO, "No known JIRA project corresponding to id: ''{0}''", id);
continue;
}
Expand Down

0 comments on commit 9742558

Please sign in to comment.