-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
When free-style job fails, Cobertura plugin does not publish coverage results, even though they are available in job workspace. "Coverage Report" on the front page of the job refers to last stable build.
Expected: "Coverage Report" on the front page of the job refers to last build, no matter if it is failed or successful.
"Consider only stable builds" setting is unchecked in job plugin configuration. If it would be checked, then indeed "Coverage Report" should refer only last stable build.
Jenkins cobertura plugin v1.9.5.
- is related to
-
JENKINS-1125 The 'coverage report' link in the project page is failing if there is no stable builds
-
- Closed
-
FWIW, I am seeing the same. Again, free style. I can (and am) generate a coverage report even though the build fails (actually, the tests fail). The coverage XML is there, but the plugin isn't picking it up. The only option I have set (apart from the path) is to fail if no coverage file is present.
If I fudge the script so that the build passes (without actually changing anything apart from the shell script exit status) the the plugin works as expected. Unfortunately then Jenkins reports things as OK.
(What I want/need is coverage when tests are failing).