How to add href links to <system-out> or <failure> tags in Jenkins / JUNIT xml

I included Jenkins in the C unit test library, and I parse the output and generate the XML in a schema that jenkins understand.

when generating xml output, I just show the essence of the error messages, and I would like to create a link to where the actual logs are located, so that the user can click on the link in jenkins to view the actual file.

I cannot add HTML tags to this XML. Jenkins turns them into encoded ... and makes my connection useless. I am even trying to use. But I still can't get it.

Has anyone tried to create a link in a jenkins report. Any help is greatly appreciated.

The following steps did not work.

1.<failure> blah.. blah.. (my brief log summary)
     <a href="www.stackoverflow.com">ERROR</a>
  </failure>

2. <failure> blah.. blah.. (my brief log summary)
     &lt;a href=\quot;www.stackoverflow.com\quot;&gt; ERROR &lt;/a&gt;
   </failure>

3. <failure>
     <![CDATA[ <a href="www.stackoverflow.com">ERROR</a>]]>
   </failure>

4. <failure>
      //CDATA with encoded &gt; &lt;

Thanks in advance

+2
3

- "" . JUnit, HTML SQL.

JUnit, , , , ..

. - , / .. .

SQL logger .

+1

, HTML ...

0

In my case, I just posted the html address there, and it was automatically parsed on the page ...

0
source

Source: https://habr.com/ru/post/1502635/


All Articles