Configuring multiple client controllers with the Jenkins CLI tool

Automation

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)
      }
    ]
  }
}
1fullName - the name of the client controller, including folders.
2url - URL for the client controller.
3status - the connection status of the client controller. It can be 'ONLINE' or 'OFFLINE'.