jenkins - How to change value of name column in cobertura report -
i using cobertura plugin in jenkins code coverage. want change value of name column in project coverage summary on per-report basis.
is there way change this. want give project name on there.
here fork of plugin asking (project name instead of "cobertura coverage report").
https://github.com/andytompkins/cobertura-plugin
right uses project name. suppose become configurable item? i'll glad work on more if else needed, , package changes in way upstream take them.
the relevant code changed in coverageresult.java. added method:
public string getjobname() { abstractproject job = owner.getproject(); return job.getname(); }
and in index.jelly changed reference it.name it.getjobname().
<td>${it.getjobname()}</td>
it bit harder make on per-report basis. report not have name or title field - , plugin not control format, reads it.
i using javascript project uses karma , karma-coverage. running forked plugin in production jenkins.
edit: in branch use-filename-for-reportname in repo find version of plugin use coverage file's name report name.
Comments
Post a Comment