If you work in Jenkins Enterprise (CloudBees), and you use the Jenkins plug-in in Continuous Delivery Director, you can now enable the CloudBees Request Filter Plugin for controlling the amount of data that is fetched from your Jenkins Enterprise (CloudBees) instance.
Using the updated Jenkins plug-in of Continuous Delivery Director, all plugin requests to your Jenkins Enterprise (CloudBees) will include the "tree" query parameter that lets you specify precisely the exact set of data that is required for each API call.
This feature allows you to comply with your organization performance and security guidelines.
To configure the CloudBees Request Filter Plugin to work with tree query parameters:
- In Jenkins, from the dashboard, navigate to Manage Jenkins, then Manage Plugins.
- Navigate to CloudBees Request Filter Plugin and ensure that the plugin is enabled.
- From the dashboard, navigate to Manage Jenkins, then Configure System.
- Scroll down to Request Filtering. In the URI Pattern field, enter .*/api/\w+(?!.+tree=.+).* and save.
For more information, see:
Taming the Jenkins JSON API with Depth and "Tree"
Block all API calls
CloudBees Request Filter Plugin
Jenkins plug-in documentation