-
Bug
-
Resolution: Fixed
-
Minor
On the main page of a free-style project that aggregates test results from downstream projects,
the "Latest Test Result" link points to
http://jenkins/job/testJob/lastCompletedBuild/testReport/ instead of
http://jenkins/job/testJob/lastCompletedBuild/aggregatedTestReport/ .
The link should also say "Latest Aggregated Test Result".
In Chrome and IE this leads to 404s. Firefox automatically shows the parent page (that's actually why I didn't notice this bug earlier).
The underlying problem is that in main.jelly the following check is always true:
${tr.class.name != 'hudson.tasks.test.AggregatedTestResultAction}
(the class name is in fact "hudson.tasks.test.AggregatedTestResultPublisher$TestResultAction" for a free-style project with aggregated test results)
and
${it.lastCompletedBuild.aggregatedTestResultAction}
always returns null, because AggregatedTestResultAction is not assigned to the job.
I'm wondering if the AggregatedTestResultAction is obsolete (eventhough MatrixTestResult extends it)?
- is duplicated by
-
JENKINS-13679 Test Result column does not work with aggregated test results
-
- Resolved
-
Code changed in jenkins
User: Stefan Wolf
Path:
core/src/main/resources/hudson/model/AbstractProject/main.jelly
test/src/test/java/hudson/tasks/test/AggregatedTestResultPublisherTest.java
test/src/test/java/hudson/tasks/test/helper/AbstractPage.java
test/src/test/java/hudson/tasks/test/helper/AbstractTestResultLink.java
test/src/test/java/hudson/tasks/test/helper/BuildPage.java
test/src/test/java/hudson/tasks/test/helper/LatestTestResultLink.java
test/src/test/java/hudson/tasks/test/helper/ProjectPage.java
test/src/test/java/hudson/tasks/test/helper/TestResultLink.java
test/src/test/java/hudson/tasks/test/helper/TestResultsPage.java
test/src/test/resources/hudson/tasks/test/AggregatedTestResultPublisherTest.zip
http://jenkins-ci.org/commit/jenkins/629be4ab30d0d046d6839c07ba5de1b31d8e1feb
Log:
[FIXED JENKINS-9637] Fixed the 404 when clicking the testResult on the Project Page when there is only an aggregated test result for a freestyle job. The name of the link is still wrong.