Using tabs#751
|
|
Hello, I am trying to use the “tabs” feature; but am not sure about how to specify the path to link to. For example, I have a coverage job for which I am specifying following artifact; <artifact dest="coverage" src="report/cobertura" />So in the output of my job; when I click on the “artifacts” tab; I am able to see a directory called “coverage” and inside that directory I have another directory called “cobertura” and inside that I have all the result files (html). So I am able to browse the coverage results :) Now I want to create a tab called “CoverageResults” and link the “index.html” inside my artifacts directory to it, so I do following; <tabs> <tab name="CoverageReport" path="coverage/cobertura/index.html" /> </tabs>But this does not work? Also I want to link the “index.html” to the “tests” tab and I am doing following; <artifacts> <artifact dest="coverage" src="report/cobertura" /> <test src="coverage/cobertura/index.html" /> </artifacts>This does not work either. I am attaching the complete listing of my job XML and will appreciate your help. thanks </job> |
|
|
Hi Asif, Sorry for make confusion. For tab path it should be defined as relative path of artifacts which locate in cruise server side, so what you defined here should be fine. But for artifact which type is test , the src attribute should point towards a folder that contains the test output files which locate in agent side. Cruise will use these to generate a test report. So if you want to link index.html, please create another sub tab, for example tab name is “tests-index”, then define its path as “coverage/cobertura/index.html”. So generally the following define should work:
<job name="coverageJob">
<artifacts>
<artifact dest="coverage" src="report/cobertura" />
</artifacts>
<tasks>
<ant buildfile="build.xml" target="coverage" />
</tasks>
<tabs>
<tab name="CoverageReport" path="coverage/cobertura/index.html" />
<tab name="test-index" path="coverage/cobertura/index.html" />
</tabs>
</job>
Thanks, |
