HTML Report Publisher and FIle Hierarchies

30 views
Skip to first unread message

Schalk Cronjé

unread,
Oct 10, 2013, 8:59:52 AM10/10/13
to jenkins...@googlegroups.com
Of late I have been doing custom HTML reports to be published in Jenkins. It seems that if files are in the same directories as the index page they can be referenced from Jenkins, but not if they are in a subdirectory.

To illustrate, if the following is the published index page then, file2 will be displayed, but file3.html with yield a 404 error.

<html><body> 
  <a href='file2.html'>same_level</a>
  <a href='nested/file3.html'>in_subdir</a>
</body</html>


All of the files in the hierarchy will be archived,
 
Anyone know whether this is defined behaviour or a bug?

Tested on Jenkins 1.531 with HTML Publisher 1.2

Vivekanand S V

unread,
Oct 10, 2013, 9:29:39 AM10/10/13
to jenkins...@googlegroups.com
You should be able publish another html (By clicking the add button present below it) by giving the new directory in the 2nd one and giving file3.html as the file to archive. This is how I work with multiple HTML files.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Schalk W. Cronjé

unread,
Oct 10, 2013, 9:38:58 AM10/10/13
to jenkins...@googlegroups.com
That approach does not scale when the report contains 10k+ files.

I have subsequently discovered that I have generating incorrect relative links. It is only when the links point to directories that they still 404. 


--
Schalk W. Cronjé
[Sent from mobile phone]
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JPnL9KuQZiU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Ginga, Dick

unread,
Oct 10, 2013, 9:45:43 AM10/10/13
to jenkins...@googlegroups.com

Just a thought, have you tried to set a publish directory as /htmlstuff/**? I think that means all subdirectories

Schalk Cronjé

unread,
Oct 16, 2013, 9:40:36 AM10/16/13
to jenkins...@googlegroups.com
That does not quite work as expected. However I got it all working by dropping in index.html files down the hierarchy as part of a build step. So instead of hyperlinkign to the fodlers, I just hyperlink to the index.html files instead.
Reply all
Reply to author
Forward
0 new messages