Giter Site home page Giter Site logo

jenkins-zsh's Introduction

jenkins-zsh plugin

A jenkins plugin for ZSH, heavily inspired by the excellent jira plugin.

Install

Using oh-my-zsh:

cd $ZSH/plugins && git clone https://github.com/tomplex/jenkins-zsh.git

And then add "jenkins-zsh" to your oh-my-zsh plugins in .zshrc.

You can specify a jenkins base url three different ways (checked in this order):

  1. Using a .jenkins-url file in the local directory (i.e. ~/project/.jenkins-url)
  2. .jenkins-url file in the ~/ directory
  3. "JENKINS_URL" environment variable.

If you have Java and the Jenkins CLI installed, then adding a "JENKINS_CLI_PATH" env variable will allow some extra features, such as job name autocompletion when trying to open a specific job.

Dependencies: This plugin depends on the urltools plugin.

Usage

jenkins [command] [option]

The default action is to open the jenkins home, but this can be changed by setting the "JENKINS_DEFAULT_ACTION" environment variable.

Available commands:

jenkins home

Opens up the jenkins home page / landing dashboard.

jenkins new

Will open up the "new job" page.

jenkins job "job name"

Open the page for the specified job. If the JENKINS_CLI_PATH env var is specified, then it will attempt to autocomplete job named. Jobs with spaces in the name must be enclosed in quotes. NOTE: This is still in development. It works, but it takes a couple seconds because each time you hit tab, it polls the server for all job names. I know there's a better way to do it, but I don't know what it is. If you have any advice, please let me know.

jenkins search "keyword"

Opens the search results page for the given phrase. Multiple word phrases must be enclosed in quotes.

jenkins node "node name"

Will open up the page for the named node.

jenkins-zsh's People

Contributors

tomplex avatar

Watchers

Amit Misra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.