Skip to content

config.toml ​

The app writes ~/.config/jenklod-batman/config.toml itself: the setup form fills it, and pins, poll interval and macros are saved as you change them. You can also edit it by hand while the app is closed. It never contains your token.

toml
url = "https://jenkins.example.com"
user = "bruce.wayne"
poll_seconds = 10

[servers."https://jenkins.example.com"]
pinned = ["gotham/deploy", "arkham/cell-audit"]

[[servers."https://jenkins.example.com".macros]]
name = "ship"

[[servers."https://jenkins.example.com".macros.steps]]
kind = "build"
job = "gotham/deploy"
with_params = true
params = { ENV = "prod", DRY_RUN = "false" }

[[servers."https://jenkins.example.com".macros.steps]]
kind = "input"
job = "gotham/deploy"

[[servers."https://jenkins.example.com".macros.steps]]
kind = "wait"
job = "gotham/deploy"
timeout_minutes = 45

Top level ​

KeyTypeDefaultDescription
urlstringThe Jenkins controller.
userstringYour Jenkins user ID.
poll_secondsinteger10How often watched jobs are polled. p cycles 5, 10, 20, 30, 60.

[servers."<url>"] ​

Everything that belongs to one controller, keyed by its URL without the trailing slash. Switching url with --setup shows that controller's pins and macros, and keeps the others for later.

KeyTypeDescription
pinnedlist of stringsWatched jobs, as full names (folder/sub/job), in display order.
macrosarray of tablesSee below.

Older configs

Before v0.2.0, pinned was a top-level list. On the next start it moves under the configured url.

Macros ​

Each [[servers."<url>".macros]] has a name and an array of steps.

KeyTypeApplies toDescription
kindstringallbuild, abort, wait or input.
jobstringallThe job's full name.
with_paramsbooleanbuildUse buildWithParameters with params; otherwise start the job plainly.
paramstablebuildParameter values. Password parameters are never saved.
timeout_minutesintegerwait, inputDefaults to 30.
abortbooleaninputAnswer Abort instead of proceeding.

How the steps run is described in Macros.

Released under the MIT License. Gotham, its jobs and its people in these pages are fictional.