Then from groovy it's a matter of calling the right method of the jenkins
java api to retrieve the right file.

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({},
> 'cvml', '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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to