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. enter image description here

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

cobertura plugin project name

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.

report name file


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -