← 返回
开发者工具 Key 中文

Jenkins

Interact with Jenkins CI/CD server via REST API. Use when you need to trigger builds, check build status, view console output, manage jobs, or monitor Jenkin...
通过 REST API 与 Jenkins CI/CD 服务器交互。适用于触发构建、查询状态、查看控制台输出、管理任务或监控 Jenkins...
guoway
开发者工具 clawhub v1.0.0 1 版本 99525.2 Key: 需要
★ 2
Stars
📥 2,266
下载
💾 58
安装
1
版本
#latest

概述

Jenkins

Interact with Jenkins CI/CD server through REST API.

Required environment variables

  • JENKINS_URL (example: https://jenkins.example.com)
  • JENKINS_USER (your Jenkins username)
  • JENKINS_API_TOKEN (API token from Jenkins user settings)

List jobs

node {baseDir}/scripts/jenkins.mjs jobs
node {baseDir}/scripts/jenkins.mjs jobs --pattern "deploy-*"

Trigger build

node {baseDir}/scripts/jenkins.mjs build --job "my-job"
node {baseDir}/scripts/jenkins.mjs build --job "my-job" --params '{"BRANCH":"main","ENV":"dev"}'

Check build status

node {baseDir}/scripts/jenkins.mjs status --job "my-job"
node {baseDir}/scripts/jenkins.mjs status --job "my-job" --build 123
node {baseDir}/scripts/jenkins.mjs status --job "my-job" --last

View console output

node {baseDir}/scripts/jenkins.mjs console --job "my-job" --build 123
node {baseDir}/scripts/jenkins.mjs console --job "my-job" --last --tail 50

Stop build

node {baseDir}/scripts/jenkins.mjs stop --job "my-job" --build 123

View queue

node {baseDir}/scripts/jenkins.mjs queue

View nodes

node {baseDir}/scripts/jenkins.mjs nodes

Notes

  • URL and credentials are variables by design for cross-environment deployment.
  • API responses are output as JSON.
  • For parameterized builds, use --params with JSON string.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 01:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,741
content-creation

OpenClaw AVIF to JPG

guoway
使用命令行工作流将 .avif 图像转换为 .jpg,支持一个或多个输入路径。适用于用户请求转换 AVIF 文件或批量转换文件夹中的 AVIF 文件。
★ 0 📥 509
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,847