Configuring Client Masters with the Jenkins CLI tool

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

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

The list-masters CLI command on Operations Center provides information about all connected masters in JSON format, allowing you to use that information to invoke commands on each Client Master:

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