Giter VIP home page Giter VIP logo

jenkins-cli-doc's Introduction

jcli Document

jcli was written by golang which could provide you a easy way to manage your Jenkins. Unlike the build-in cli, jcli allows you manage multiple servers.

How to get it

Read here to get know about how to install jcli.

Configuration

Once you'v installed jcli. You should provide a config file for it. Please execute cmd jcli config generate, this will help you to edit the config file ~/.jenkins-cli.yaml. According to your Jenkins configuration to modify this file.

If you want to modify your config file of jcli. You just need to execute jcli config edit.

It's simple to add another Jenkins config item. Here's a sample cmd: jcli config add -n yourJenkinsName --url http://localhost:8080/jenkins --token replacethesampletoken.

Plugin Management

jcli allows you to search, download, install, uninstall or upload a plugin.

First, please search a plugin by a keyword if you want to install it. You can get a plugin list by execute jcli plugin search zh-cn. You can install it with the plugin name.

For example, you can install the Simplified Chinese Localization plugin by jcli plugin install localization-zh-cn.

Download Plugins

Some times, Jenkins just cannot connect with the offical Update Center. We can use the download sub-cmd to download all the plugins which're you need, then upload them. This command will take care of the dependencies of the plugin.

You can try it:

jcli plugin download localization-zh-cn

Job Management

You can search a job list using a keyword, like this: jcli job search input.

It's very simple to trigger a job. We have the batch mode and interactive mode. This command will finish immediately.

jcli job build "folderName jobName" -b

Once you triggered a job, then you can watch the log output by jcli job log "zjproject zjproject-inputstep55" -w. This command will always output the log of the last build.

Proxy Support

Jenkins might be stay in behind a firewall. So we cannot connect it directly. You can give jcli a proxy setting. It's also very simple to support a proxy setting. You just need to execute: jcli config edit. Then find the item which you want to add a proxy. Like the below demo:

- name: dev
  url: http://192.168.1.10
  username: admin
  token: 11132c9ae4b20edbe56ac3e09cb5a3c8c2
  proxy: http://192.168.10.10:47586
  proxyAuth: username:password

jenkins-cli-doc's People

Contributors

donhui avatar linuxsuren 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.