Master Jenkinsclient: Essential Commands for Managing Jobs, Plugins, and Nodes
This guide walks you through the Jenkinsclient command syntax, demonstrates how to list and control jobs, view server version, display plugins, queues, nodes, and credentials, and even shows the handy APP mode for a desktop‑like Jenkins experience.
Command format
Basic syntax: jenkins GROUP | COMMAND. GROUP groups related commands (e.g., job), and COMMAND performs a specific action.
Job group commands
jenkins job build # build a job
jenkins job copy # copy a job
jenkins job create # create a job
jenkins job delete # delete a job
jenkins job disable # disable a job
jenkins job enable # enable a job
jenkins job has # check if a job exists
jenkins job info # show job details
jenkins job ls # list jobs
jenkins job rename # rename a job
jenkins job xml # display job's config.xmlUtility commands
APP mode
Run jenkins app to open Jenkins in a separate native‑like window.
Show Jenkins server version
jenkins version
# Example output:
Jenkins server version: 2.234Show current user
jenkins whoami
# Example output:
mingList installed plugins
jenkins plugins
# Sample output (plugin name, type, version):
pam-auth PAM Authentication plugin 1.6
blueocean-i18n i18n for Blue Ocean 1.23.2
... (additional plugins omitted for brevity) ...
localization-zh-cn Localization: Chinese (Simplified) 1.0.14List jobs
jenkins jobs
# Example output:
f1 Folder http://localhost:83/job/f1/
f2 Folder http://localhost:83/job/f2/
freestyle-job FreeStyleProject http://localhost:83/job/freestyle-job/
job2 FreeStyleProject http://localhost:83/job/job2/
pipeline-project WorkflowJob http://localhost:83/job/pipeline-project/
... (additional jobs omitted) ...Show queue
jenkins queues
# Example output:
任务ID 任务链接 原因Show nodes
jenkins nodes
# Example output:
(master) Linux (amd64) 1024.0/1024.0 MB 1872.38/3938.3 MB 43664 MB 43664 MBShow credentials
jenkins creds
# Example output:
ID Name Type
94e00416-20d6-4fdf-8a38-8d799684a7ee user1/****** UsernamePasswordCredential
6d369c60-67b1-4820-ba7e-ab640df1eac1 user2/****** UsernamePasswordCredential user2 describe
user3 user3/****** UsernamePasswordCredential
ming ming (ming) SSHKeyCredential mingSummary
These commands provide quick terminal access to Jenkins resources, forming a foundation for further automation.
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.
