-
Bug
-
Resolution: Fixed
-
Major
-
None
-
windows 7
most times a build is declared failed, its about compilation issues, or health thresholds or simple scripting error status.
so most times, it has nothing to do with sloc.
the problem is that the failed build has no sloc summary data in the build.xml (it doesn't even coast from the previous non-failed build).
Can be addressed many options
0 - ignore failure state of build
1 - have an ignore failed build status option (many other publisher plugins have this
2 - if can't ignore fail status, at least coast the data from last non failed build
in general, suggest that unless there was a path issues (sloc count file doesn't exist) the results should always be published
I'm not sure if such feature can be useful. How do you call the SLOCCount tool, before or after the build? I'm using most often:
In all three cases the sloccount command won't be executed and sloccount.sc file generated if the build fails. Make, Ant and shell (in Jenkins) most often stops the processing on first error. So processing the non-existent or outdated sloccount.sc data is not reasonable.
0 - ignore failure state of build
-> Yes, this is possible, but you have to somehow satisfy that sloccount.sc contains valid data. E.g. generate it after checkout and before the build - does anyone do that?
1 - have an ignore failed build status option (many other publisher plugins have this
-> Exactly the same as 0 above.
2 - if can't ignore fail status, at least coast the data from last non failed build
-> Why? No information is added anywhere if we copy the data. The plugin already skips the failed builds if e.g. compares current and previous results.
To be honest I don't see this feature much useful, but let's discuss...