ワンクリックで
jenkins-cli
Perform Jenkins operations using the jenkins-cli.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Perform Jenkins operations using the jenkins-cli.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use the correct AWS CLI profile when running AWS commands based on the target environment.
Analyze code changes between two local Git branches and perform a comprehensive code review. Use ONLY for local git branch comparisons. Do NOT use when a GitLab or GitHub MR/PR URL or MR ID is provided — use gitlab-cli or github-cli skill instead.
Analyze code changes to prepare conventional commit message and commit to a new branch.
Create optimized, secure, production-ready Dockerfiles based on user requirements and application context.
Create a new SKILL.md file based on a guided conversation about a task or workflow.
Create a detailed upgrade plan for a Helm release managed by Terraform, comparing the current and desired chart versions including breaking changes and required code changes.
| name | jenkins-cli |
| description | Perform Jenkins operations using the jenkins-cli. |
Use the CLI setup and command format below when constructing all jenkins-cli commands.
Update the table below with your Jenkins server URLs and auth file paths:
| Environment | Server URL | Auth File |
|---|---|---|
| Production | https://<your-jenkins-prod-url> | jenkins-cli/prod.auth |
| Staging | https://<your-jenkins-staging-url> | jenkins-cli/staging.auth |
If the target server is unclear, ask the user before running any command.
jenkins-cli/jenkins-cli.jar (working directory's root)username:api-tokenAll commands must be run from the working directory's root (where jenkins-cli/ directory exists).
If the jenkins-cli/ directory does not exist yet, or jenkins-cli.jar or the auth file for the target server is missing, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
jenkins-cli in the working directory's root.<YOUR_JENKINS_URL>/jnlpJars/jenkins-cli.jar and save it as jenkins-cli/jenkins-cli.jar.username:api-token
jenkins-cli/prod.authjenkins-cli/staging.authjava -jar jenkins-cli/jenkins-cli.jar -s <SERVER_URL> -auth @<AUTH_FILE> [command]
Example (production):
java -jar jenkins-cli/jenkins-cli.jar -s https://<your-jenkins-prod-url> -auth @jenkins-cli/prod.auth who-am-i
| Command | Description |
|---|---|
who-am-i | Verify auth and show permissions |
version | Show Jenkins version |
list-jobs [folder] | List all jobs (optionally in a folder/view) |
get-job <job> | Dump job config XML to stdout |
console <job> [build#] | Get console output of a build; build# accepts integers or Jenkins specifiers like lastSuccessfulBuild, lastBuild, lastFailedBuild |
list-changes <job> [build#] | Show changelog for a build; build# must be an integer — specifiers like lastSuccessfulBuild are not accepted |
get-node <node> | Dump node config XML |
get-view <view> | Dump view config XML |
list-plugins | List installed plugins |
session-id | Show current session ID |
export-configuration | Export Jenkins config as YAML |
check-configuration | Validate YAML configuration |
declarative-linter | Validate a Declarative Jenkinsfile (reads from stdin) |
list-credentials <store> | List credentials in a store |
get-credentials-as-xml <store> <domain> <id> | Get credential XML (secrets redacted) |
get-credentials-domain-as-xml <store> <domain> | Get credentials domain XML |
list-credentials-context-resolvers | List credentials context resolvers |
list-credentials-providers | List credentials providers |
help [command] | List all commands or describe one command |
reload-job <job> | Reload job config from disk (read-only, no state change) |
| Command | Description |
|---|---|
build <job> [-s] [-v] [-p key=val] | Trigger a build (-s waits, -v streams output) |
stop-builds <job> | Stop all running builds for a job |
keep-build <job> <build#> | Mark a build to keep forever |
set-build-description <job> <build#> <desc> | Set build description |
set-build-display-name <job> <build#> <name> | Set build display name |
set-next-build-number <job> <number> | Set next build number |
replay-pipeline <job> [build#] | Replay a pipeline with edited script from stdin |
restart-from-stage <job> <build#> <stage> | Restart a Declarative Pipeline from a given stage |
| Command | Description |
|---|---|
create-job <job> | Create a new job (XML from stdin) |
update-job <job> | Update job config (XML from stdin) |
copy-job <src> <dst> | Copy a job |
enable-job <job> | Enable a job |
disable-job <job> | Disable a job |
create-view <view> | Create a new view (XML from stdin) |
update-view <view> | Update view config (XML from stdin) |
add-job-to-view <view> <job> | Add a job to a view |
remove-job-from-view <view> <job> | Remove a job from a view |
connect-node <node> | Reconnect a node |
disconnect-node <node> | Disconnect a node |
offline-node <node> | Take a node offline temporarily |
online-node <node> | Bring a node back online |
create-node <node> | Create a new node (XML from stdin) |
update-node <node> | Update node config (XML from stdin) |
reload-configuration | Reload all config from disk |
reload-jcasc-configuration | Reload JCasC YAML config |
| Command | Reason |
|---|---|
delete-job <job> | Irreversible deletion |
delete-node <node> | Irreversible deletion |
delete-view <view> | Irreversible deletion |
delete-credentials ... | Irreversible deletion |
delete-credentials-domain ... | Irreversible deletion |
clear-queue | Cancels all queued builds |
quiet-down / cancel-quiet-down | Affects all builds instance-wide |
restart / safe-restart | Restarts Jenkins for all users |
shutdown / safe-shutdown | Shuts down Jenkins for all users |
delete-builds <job> <range> | Irreversible deletion of build records |
apply-configuration | Applies YAML config changes to the entire Jenkins instance |
groovy / groovysh | Arbitrary code execution on Jenkins master |
install-plugin / enable-plugin / disable-plugin | Modifies Jenkins instance globally |
import-credentials-as-xml / update-credentials-by-xml | Modifies stored credentials |
mail | Sends email to real recipients |
support | Generates and may upload diagnostic bundles |
jenkins-cli.jar for all Jenkins operations. Do not use curl or other HTTP clients against the Jenkins REST API.