Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 854 Bytes

configfile.adoc

File metadata and controls

47 lines (35 loc) · 854 Bytes

YAML Configuration File

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 (use passwordFile or passwordEnvVariable 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