Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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!

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 25 '12, 1:33 p.m.

Question was seen: 4,098 times

Last updated: Apr 25 '12, 1:33 p.m.

Confirmation Cancel Confirm