Hi,

I've read in this wiki article 
(https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API) 
that is should be possible to extend jenkin's API.

I have written a TestDataPublisher that adds additional data to the failed 
JUnit tests. I would not look for a way to expose my additional data also 
via the API.

When I open( 
http://localhost:8080/job/MyJob/lastCompletedBuild/testReport/api/json) I 
get all the test results but obviously my data i not exposed. I've then 
tried to add @ExportedBean and @Exported at different classes of my plugin. 
But unfortunately I did not manage to get my data exposed via the API. I've 
tried to annotate my TestResultAction.Data class as well as my TestAction 
class and any combinations. Nothing changed the output of the API.

Can anybody give me a hint if it's possible to change the data exposed by 
the junit test result API? Are there maybe any examples?

Thanks, Robert

Reply via email to