Skip to content

Interact with Jenkins via the command line. Written in Go.

Notifications You must be signed in to change notification settings

mattddowney/jenk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenk

Interact with Jenkins via the command line. Written in Go. Rewrite of jenk-bash.

Copy jobs, create pipelines, and trigger pipeline inputs.

Setup:

Set the following environment variables:

OR

Create a configuration file named .jenk.yaml in your home directory containing same variables, with the following layout:

JENKINS_ROOT_URL: http://localhost:8080
JENKINS_USER_NAME: username
JENKINS_TOKEN: token_from_jenkins

Usage:

$ ./jenk
A tool for interacting with the Jenkins API.

Usage:
  jenk [command]

Available Commands:
  abort-input   Aborts a pipeline input
  copy-job      Copy a Jenkins job
  create-job    Create a Jenkins job
  env           Print the current environment
  help          Help about any command
  trigger-input Triggers a pipeline input

Flags:
      --config string   config file (default is $HOME/.jenk.yaml)
  -h, --help            help for jenk
  -t, --toggle          Help message for toggle

Use "jenk [command] --help" for more information about a command.

Releases

No releases published

Packages

No packages published

Languages