Options can be configured by a YAML file using -config
:
$ java -jar swarm-client.jar -config config.yml
Important
|
-config can not be used with other options.
|
The YAML configuration uses lower camel case naming of the CLI options; aliases aren’t supported.
Required:
-
url
Forbidden:
-
help
-
config
-
password
(usepasswordFile
orpasswordEnvVariable
instead)
Deviant naming:
-
environmentVariables
(List) -
toolLocations
(List)
Example Configuration:
url: https://localhost:8080/jenkins
name: agent-name-0
description: Configured from yml
executors: 3
labels:
- label-a
- label-b
- label-c
webSocket: true
environmentVariables:
ENV_1: 1234
ENV_2: swarm-client
username: swarm
passwordEnvVariable: SWARM_KEY