Well, a little succes here:

I can retreive the clover.xml data from the last Build via:

http://[server_url]/job/[job_name]/api/xml?xpath=/*/healthReport[1]/description

But this somehow DOESN'T work for any other previous build eg.:

http://[server_url]/job/[job_name]/lastSuccessfulBuild/api/xml?xpath=/*/healthReport[1]/description

-or-

http://[server_url]/job/[job_name]/[build_nr]/api/xml?xpath=/*/healthReport[1]/description

Does anyone know, how to access the data correctly?

Thanks again :-)

Zigster


Am Dienstag, 14. Mai 2013 12:46:26 UTC+2 schrieb Zigster:
>
> 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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to