Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-24436] Use rootUrl rather that jobBaseUrl when linking to jo…
Browse files Browse the repository at this point in the history
…b results.
  • Loading branch information
uhafner committed Oct 25, 2014
1 parent 1b405f3 commit f97da7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
@@ -1,13 +1,11 @@
package hudson.plugins.analysis.views;

import hudson.model.Job;

import hudson.plugins.analysis.Messages;
import hudson.plugins.analysis.core.AbstractProjectAction;
import hudson.plugins.analysis.core.BuildResult;
import hudson.plugins.analysis.util.HtmlPrinter;
import hudson.plugins.analysis.util.model.Priority;

import hudson.views.ListViewColumn;

/**
Expand All @@ -34,7 +32,7 @@ public String getUrl(final Job<?, ?> project) {
return null;
}
else {
return action.getUrlName();
return project.getUrl() + action.getUrlName();
}
}

Expand Down
Expand Up @@ -5,7 +5,7 @@
${it.getNumberOfAnnotations(job)}
</j:if>
<j:if test="${it.hasUrl(job)}">
<a href="${jobBaseUrl}${job.shortUrl}${it.getUrl(job)}">${it.getNumberOfAnnotations(job)}</a>
<a href="${rootURL}/${it.getUrl(job)}">${it.getNumberOfAnnotations(job)}</a>
</j:if>
</td>
</j:jelly>

0 comments on commit f97da7e

Please sign in to comment.