Operations 10 min read

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.

DevOps Coach
DevOps Coach
DevOps Coach
Master Jenkinsclient: Essential Commands for Managing Jobs, Plugins, and Nodes

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.xml

Utility 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.234

Show current user

jenkins whoami
# Example output:
ming

List 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.14

List 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 MB

Show 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   ming

Summary

These commands provide quick terminal access to Jenkins resources, forming a foundation for further automation.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ci/cdDevOpsJenkinsJenkinsclient
DevOps Coach
Written by

DevOps Coach

Master DevOps precisely and progressively.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.