The cobertura plugin will fail if the threshold for the code coverage falls below a certain level, but I don't think it will automatically adjust as metrics get better, that would probably be a manual thing every now and then to checkout what to set them too. I don't know if it would work with clover.
Will On 05/14/13 06:05, Richard Lavoie wrote: I believe you would have to use the archive artifact plugin so those files are kept affer a build then you should be able to retrieve them from a next build. I thought there was a plugin already for that use case (to fail if the coverage deteriorates )... Or was it someone on the dev/user list ... On Tuesday, May 14, 2013, Zigster wrote: Hi Jenkins-Users, is there a good way to access build artifacts, e.g. the code coverage report in the clover.xml of - for example - the last stable build ? Background: In a php project being built by jenkins, I would like to access the code coverage ratio of a previous (stable) build and compare it with the recent build - and in case the ratio deteriorates, let the recent build become unstable. I know, that the clover.xml contains the "metrics" node with the attributes "elements" and "coveredelements" which can be calculated as the coverage percentage: (coveredelements/elements) * 100 But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin in Jenkins ? Any suggestions are greatly appreciated! Zigster -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<javascript:_e({},%20'cvml', %20%20%20%20%20%20%20%20%20%20%20%20'jenkinsci-users%[email protected]');>. For more options, visit https://groups.google.com/groups/opt_out. -- Richard Lavoie IT consultant / consultant en informatique -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
