A powerful cross-platform Jenkins command line client which supports multiple instances of Jenkins.
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
pip3 install -U jenkinsclient
https://pypi.org/project/jenkinsclient/
After install jenkinsclient, you can use command jenkins
to perform many operations on Jenkins server.
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.
Type jenkins
to show jenkinsclient help information, or jenkins GROUP
to view group command help information, such as jenkins config
, jenkins job
.like this:
NAME
jenkins - A powerful cross-platform Jenkins command line client
SYNOPSIS
jenkins GROUP | COMMAND
DESCRIPTION
A powerful cross-platform Jenkins command line client
GROUPS
GROUP is one of the following:
build
Manage builds
config
Configure Jenkins server information
cred
Manage Jenkins credentials
executor
Manage Jenkins executors
job
Manage Jenkins jobs
node
Manage Jenkins nodes
plugin
Manage Jenkins plugins
queue
Manage Jenkins queue
COMMANDS
COMMAND is one of the following:
app
app mode, operating jenkins in a window
creds
List Credentials
jobs
List jobs
nodes
List nodes
plugins
List plugins
queues
List queues
version
Display Jenkins server version
whoami
Display who am i
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。