A powerful cross-platform Jenkins command-line client which supports multiple instances of Jenkins.
Project description
JenkinsClient
A powerful cross-platform Jenkins command-line client which supports multiple instances of Jennkins.
Features
- Global info
- get Jenkins server version
- get whoami info
- get plugins info
- get node info
- get jobs info
- get queues info
- Object operations
- Plugin
- list, search, install, uninstall plugin, and many more operations
- Job
- list, build, copy, create, delete, disable, enable, rename job, and many more operations
- Queue
- list and cancel queue
- Build
- get env_vars, information, log and test report of build
- Plugin
- ...
Install
You can use pip to install jenkinsclient on PyPI, just execute following command:
pip3 install jenkinsclient
or manually download the source code and use setuptools:
python setup.py install
Usage
After install jenkinsclient, you can use command jenkins
to perform many operations on Jenkins server.
QUICK START
- Use
jenkins config generate
to config jenkins servers.
This command will generate a config file, you can modify it by yourself.
- Do what you want.
try jenkins jobs
to see all jobs on your jenkins server.
try jenkins plugins
to see all plugins on your jenkins server.
Help infomation
Type jenkins
to show help infomation like this:
NAME
jenkins - Jenkins命令行客户端
SYNOPSIS
jenkins GROUP | COMMAND
DESCRIPTION
Jenkins命令行客户端
GROUPS
GROUP is one of the following:
config
配置信息
job
Jenkins任务相关操作
plugin
Jenkins插件相关操作
COMMANDS
COMMAND is one of the following:
jobs
显示任务列表
plugins
显示插件列表
whoami
显示当前用户
Command infomation
You can type jenkins COMMAND
to view command infomation, such as jenkins confg
, jenkins job
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jenkinsclient-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863c7596320f9b1eb0471347271c284d2c25d06f57f45c20e77a5cd83ce2dab1 |
|
MD5 | bced804e46be00b4e626e2ce3db4d6b3 |
|
BLAKE2b-256 | bfdc47038d3ff0ad4a1a3c6e23a62849ec2090ce11589d0f9f34a54276a5ff56 |