Explore Jenkinsclient: A Powerful Cross‑Platform CLI for Jenkins
Jenkinsclient is an open‑source, Python‑based, cross‑platform command‑line client that offers Docker‑style commands to manage multiple Jenkins instances, covering configuration, nodes, plugins, credentials, jobs, queues, executors, and builds, with simple installation via pip.
Overview
Jenkinsclient is an open‑source, cross‑platform command‑line client for Jenkins, written in Python and released under the Mulan Open Source License. The source code is hosted on Gitee (https://gitee.com/hummerstudio/jenkinsclient) and GitHub (https://github.com/hummerstudio/jenkinsclient); the package is published on PyPI.
Key Features
Open source : Mulan Open Source License encourages contributions.
Cross‑platform : Runs on any system with a Python interpreter (Windows, Linux, macOS, Unix).
Multi‑instance support : jenkins config generate creates a configuration file that can hold multiple Jenkins server definitions; the use field selects the default server.
Docker‑style syntax : Commands resemble natural language, e.g., jenkins job build JOB_NAME instead of traditional flag‑based forms.
Rich functionality : Manages server configuration, nodes, plugins, credentials, jobs, queues, executors, and builds.
Command Syntax
Typical Docker‑style commands provided by Jenkinsclient:
jenkins jobs // list jobs
jenkins job build JOB_NAME // trigger a job
jenkins job disable JOB_NAME // disable a job
jenkins job enable JOB_NAME // enable a job
jenkins plugins // list plugins
jenkins plugin install PLUGIN_NAME // install a plugin
jenkins plugin uninstall PLUGIN_NAME // uninstall a plugin
jenkins plugin search KEY_WORD // search pluginsInstallation
Install from PyPI: pip3 install jenkinsclient Or install from source with setuptools:
python setup.py installUpgrade
pip3 install -U jenkinsclientQuick Start
Configure Server Information
Run jenkins config generate to create a template configuration file. Edit the file to add one or more Jenkins server entries and set the use field to the default server.
Help and Resource Listing
Use jenkins jobs to list all jobs, jenkins plugins to list all plugins, or run jenkins to see top‑level command groups. Detailed help for a group is obtained with jenkins job or jenkins plugin.
Supported Operations
Server configuration management
Node management
Plugin management (list, install, uninstall, search)
Credential management
Job management (list, build, enable, disable)
Queue management
Executor management
Build management
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
