Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: REST API integration #42

Open
papaiatis opened this issue Feb 12, 2014 · 12 comments
Open

Feature Request: REST API integration #42

papaiatis opened this issue Feb 12, 2014 · 12 comments

Comments

@papaiatis
Copy link

Hi,
I've been using this plugin for a while now and our team is thinking about developing a remote monitor service with a dashboard. This dashboard would gather build and code analysis information from multiple sources including Jenkins with Violation plugin. By default, Jenkins support a REST API in different response formats (XML, JSON). However this API is not available under the Violations plugin, for example: http://myjenkins/job/FxCop/4/violations/api/xml.
It would be such a great help to make this URL available.
Thank you.

@s0undt3ch
Copy link

👍

5 similar comments
@rushi
Copy link

rushi commented Dec 30, 2014

👍

@sh1mmer
Copy link

sh1mmer commented Mar 11, 2015

👍

@LaurentTardif
Copy link

👍

@arnlaugsson
Copy link

👍

@GBeauny
Copy link

GBeauny commented Aug 27, 2015

👍

@GBeauny
Copy link

GBeauny commented Aug 27, 2015

Something has been done about that issue?
Thank you guys.

@papaiatis
Copy link
Author

I don't think so... Does not seem to be under maintenance for a while.

On Thu, Aug 27, 2015 at 10:32 AM, GBeauny [email protected] wrote:

Something has been done about that issue?
Thank you guys.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@GBeauny
Copy link

GBeauny commented Aug 27, 2015

Nobody knows an another way to get clover php or cobertura result through Jenkins APIs?
I'm trying to find a way about it.

Thanks,

@tomasbjerre
Copy link
Contributor

@GBeauny Perhaps you can just do a simple GET request to the Cobertura report file in the workspace "/jenkins/job/jobName/ws/"? But that would only get you the file for the latest build.

@GBeauny
Copy link

GBeauny commented Aug 28, 2015

Yes, this a last of last solution, but it's not really nice. But thanks, i may update directly the plugin.

@ericdriggs
Copy link

I agree that an api supporting json / xml would be helpful. If you're just trying to get cobertura data, you can go directly to cobertura for that info.

For cobertura, you can get the report as such:
JSON: /jenkins/job/jobName/buildNumber/cobertura/api/json?pretty=true&depth=3
XML: /jenkins/job/jobName/buildNumber/cobertura/api/xml?pretty=true&depth=3

Example:
https ://fakeserver.com/jenkins/job/foo/123/cobertura/api/json?pretty=true&depth=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants