Skip to content

Command line ​

jenklod-batman ​

Starts the TUI.

FlagDefaultDescription
--config FILE~/.config/jenklod-batman/config.tomlConfig file. $XDG_CONFIG_HOME replaces ~/.config.
--setupOpen the setup form again (URL, user, token).
--forget-tokenRemove the stored token from the keyring and exit.
--no-animSkip the splash and keep the cat still.
--versionPrint the version and exit.

jenklod-batman run ​

Runs a macro without the TUI.

text
jenklod-batman run <macro> [KEY=VALUE…] [-y] [--config FILE]
jenklod-batman run --list
ArgumentDescription
<macro>The macro's name, as listed by --list.
KEY=VALUEOverride that parameter in every build step that has it. Repeat for several. A key that no build step uses is an error.
-y, --yesDon't ask for confirmation.
-l, --listList the macros of the configured Jenkins, with their steps.
--config FILEConfig file, as for the TUI.
-h, --helpShow the usage.

Behaviour:

  • Before running, it prints the steps and any overrides. On a terminal it asks Run it? [y/N]. With -y, or without a terminal, it doesn't ask.
  • Progress goes to standard output as [step/total] message.
  • Exit codes: 0 when every step succeeded; 1 on any error, including a failed step, an unknown macro or an unused override.
  • Interrupting: ctrl+c or SIGTERM stops the run. Builds already started keep running.

Environment ​

VariableDescription
JENKINS_TOKENAPI token to use instead of the keyring's.
XDG_CONFIG_HOMEBase directory for the config (default ~/.config).

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