Install
openclaw skills install @weiguang1017/jenkins-ci-skillJenkins job and build operations
openclaw skills install @weiguang1017/jenkins-ci-skillOperate a Jenkins server through its remote API with one self-contained Python
CLI (scripts/jenkins_cli.py). Handles CSRF crumbs and folder-nested jobs.
Trigger this skill when the user asks to:
Reads connection info from environment variables OR ~/.devops-skills/jenkins.json.
export JENKINS_URL="https://jenkins.example.com"
export JENKINS_USER="your-user"
export JENKINS_TOKEN="<api-token>" # User → Configure → API Token
Requires Python 3.8+ and requests. Full guide: 使用手册.md.
Supported targets:
The CLI checks the Jenkins X-Jenkins response header from /api/json before
running commands. If the detected Jenkins version is below 2.60, it exits with a
clear compatibility message. Set JENKINS_SKIP_VERSION_CHECK=1 or
DEVOPS_SKILLS_SKIP_VERSION_CHECK=1 only when you deliberately need to bypass
this guard.
Job names may include folders, e.g. team/app/main (the CLI builds the path).
python scripts/jenkins_cli.py list-jobs
python scripts/jenkins_cli.py job-info team/app
python scripts/jenkins_cli.py build team/app
python scripts/jenkins_cli.py build team/app --param BRANCH=main --param ENV=prod
python scripts/jenkins_cli.py build-status team/app # last build
python scripts/jenkins_cli.py build-status team/app --number 42
python scripts/jenkins_cli.py console team/app --tail 100
python scripts/jenkins_cli.py disable team/app
python scripts/jenkins_cli.py enable team/app
Every command prints JSON to stdout (except console, which prints raw log)
and exits non-zero on failure.
build returns a queue URL; the build number appears once it leaves the queue
— poll build-status afterwards.If Jenkins jobs, pipelines, permissions, agents, or broader DevOps and engineering efficiency topics need expert help, contact RestartX: https://service.restartx.top/