It's all about the answers!

Ask a question

Attach HTML file to build report, it won't open in browser


Andrew Freed (21311214) | asked Apr 25 '12, 1:33 p.m.
JAZZ DEVELOPER
I'm generating an HTML file during my build and attaching it to my build results. When I open the file from the downloads page it opens in a plain text editor instead of an HTML browser (plain text editor is NOT my default for .html files)

How can I get the file to open in a browser?

build snippet (removed tags for forum code):
artifactFilePublisher repositoryAddress="${repositoryAddress}"
userId="${jazz.user.id}"
password="${jazz.user.passwd}"
buildResultUUID="${buildResultUUID}"
contentType="text/html"
failOnError="false"
verbose="true"
filePath="${file.path}"
label="${file.description}"

on the build report the file shows text/html and UTF-8

2 answers



permanent link
Ralph Schoon (63.7k33648) | answered Apr 26 '12, 4:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

it is treated as attached file. So you can't. The following articles described a solution that can help here

https://jazz.net/library/article/797
https://jazz.net/library/article/807

permanent link
Andrew Freed (21311214) | answered Apr 26 '12, 2:39 p.m.
JAZZ DEVELOPER
Thanks for the tip. For any others watching this topic, using linkPublisher made more sense than using artifactLinkPublisher. Setting up Apache per the article #797 was trivial. Thanks again!

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.