-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add dependency check results to Jenkins REST API #107
base: master
Are you sure you want to change the base?
Conversation
|
||
@GET | ||
@WebMethod(name = "findings") | ||
public JsonHttpResponse getFindingsExposedInRemoteApi() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not expose result unless a valid use case
@@ -135,4 +143,47 @@ public JSONObject getSeverityDistributionJson() { | |||
return JSONObject.fromObject(getSeverityDistribution(), jsonConfig); | |||
} | |||
|
|||
public Api getApi() { | |||
return new Api(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case we have to return only severity distribution so you can return new Api(getSeverityDistribution())
without add all other methods (getSeverityDistribution trigger a lock) and keep the buildaction clean
@@ -135,4 +143,47 @@ public JSONObject getSeverityDistributionJson() { | |||
return JSONObject.fromObject(getSeverityDistribution(), jsonConfig); | |||
} | |||
|
|||
public Api getApi() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miss API documentation (_api.jelly in the parent object folder)
9631fc7
to
dc2b961
Compare
Draft/sketch for adding dependency check findings to Jenkins REST API.
Please see https://issues.jenkins.io/browse/JENKINS-72062 for details.