Best Practice For Using Jenkins REST API


Best Practice For Using Jenkins REST API


CloudBees Jenkins Enterprise

CloudBees Jenkins Operations Center


The Jenkins REST API should never be used without the tree parameter. Using the Jenkins REST API
without the tree parameter, making a call to /api/json for example will run. However, making a call
to /api/json will cause Jenkins by default to respond with some rather arbitrary collection of data,
some of which might not be used and which may be work to compute. The practice of making /api/json
calls can cause poor performance issues and high CPU issues.

More information about the tree parameter can be found here:


Taming Jenkins JSON API Blog Post

Have more questions? Submit a request


Please sign in to leave a comment.