Jenkins Command Line Interface

Interact with Jenkins from you terminal. Launch build process, watch logs or search projects without your mouse!

Usage

Build the project on Jenkins, and displays the result when the operation is complete. Use -v for verbose mode

$ jenkins build My-Awesome-Project

List all available projects

$ jenkins list

Display logs of last build(ed) project

$ jenkins log My-Awesome-Project

TODO Search over projects

$ jenkins list *capdemat* 

TODO Alter git branch on the fly

$ jenkins checkout My-Awesome-Project new-git-branch

Prerequisites

Required dependencies

Installation

Set your Jenkins credentials (~/.bash_profile || ~/.zshrc)

export JENKINS_LOGIN="xxx@zenexity.com"
export JENKINS_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxx"

Clone the project

git clone git@github.com:studiodev/jenkins-cli.git
chmod +x jenkins-cli/jenkins

It's ready! But you could add jenkins-cli to your PATH or create an alias to use it from everywhere.