Continuous Delivery Director

 View Only

Jenkins Plug-in and Tree Query Parameters

By Colin Kurrant posted Aug 14, 2019 07:29 AM

  
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:
  1. In Jenkins, from the dashboard, navigate to Manage Jenkins, then Manage Plugins.
  2. Navigate to CloudBees Request Filter Plugin and ensure that the plugin is enabled.
  3. From the dashboard, navigate to Manage Jenkins, then Configure System.
  4. Scroll down to Request Filtering. In the URI Pattern field, enter .*/api/\w+(?!.+tree=.+).* and save.
Set up request filtering in CloudBees



For more information, see: 

Taming the Jenkins JSON API with Depth and "Tree"

https://www.cloudbees.com/blog/taming-jenkins-json-api-depth-and-tree

Block all API calls
https://support.cloudbees.com/hc/en-us/articles/217375688-Block-all-api-calls

CloudBees Request Filter Plugin
https://release-notes.cloudbees.com/product/77

Jenkins plug-in documentation
https://docops.ca.com/ca-continuous-delivery-director/integrations/en/plug-ins/jenkins-plug-in

0 comments
23 views

Permalink