Configuring multiple client controllers with the Jenkins CLI tool

1 minute readAutomation

Jenkins allows some operations to be invoked through the CLI, including operations that are useful for configuring client controllers.

You can apply identical configurations to multiple client controllers by gathering all connected controllers from the command line and performing the operations on each one.

The list-masters CLI command on operations center provides information about all connected controllers in JSON format, allowing you to use that information to invoke commands on each client controller:

{ "version": "1", "data": { "masters": [ { "fullName": "my master", (1) "url": "http://localhost:9090/", (2) "status": "ONLINE" (3) } ] } }
1 fullName - the name of the client controller, including folders.
2 url - URL for the client controller.
3 status - the connection status of the client controller. It can be 'ONLINE' or 'OFFLINE'.