← 返回 Skills 市场
Jenkins Build
作者
chengzongxin
· GitHub ↗
· v1.0.0
· MIT-0
212
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jenkins-build
功能描述
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
使用说明 (SKILL.md)
Jenkins Build
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
功能
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
触发条件
用户提到以下任一短语时激活:
- "打个师傅包" / "师傅包" / "打师傅包"
- "打个用户包" / "用户包" / "打用户包"
- "触发构建" / "Jenkins 构建"
项目映射
| 项目 | Jenkins 任务名 | 路径 | 描述 |
|---|---|---|---|
| 师傅端 | worker |
/Users/chengzongxin/worker-rn |
师傅端热更包 |
| 用户端 | user |
/Users/chengzongxin/user |
用户端包 |
实现方式
首选:浏览器自动化
利用用户已登录的浏览器 session,通过 browser 工具点击 Jenkins 界面的"立即构建"按钮。
步骤:
- 用
browser action=open打开项目页面:http://localhost:8080/job/{任务名}/ - 用
browser action=snapshot获取页面元素 - 找到"立即构建"链接(aria ref 包含"立即构建"或"Build Now")
- 用
browser action=act kind=click触发构建 - 再次 snapshot 确认构建已触发,返回构建编号和状态
备选:API 方式(需配置)
如果浏览器不可用,可尝试 API 方式,但需要解决 CSRF crumb 问题。
输出
构建触发后,向用户反馈:
- 构建编号
- 当前状态(执行中/排队中)
- 预计时间(如有)
- Jenkins 页面链接
注意事项
- Jenkins 地址:
http://localhost:8080 - 默认账号密码:
admin/admin(如需要 API 方式) - 构建触发后无需等待完成,异步通知即可
- 如构建失败,检查 Jenkins 服务状态和登录状态
扩展
未来可支持:
- 查看构建日志
- 获取构建产物下载链接
- 构建失败自动通知
- 支持更多项目(通过配置映射表)
安全使用建议
This package appears to do what it says: open Jenkins pages or call the API to trigger builds. Before installing/using it: 1) Review and remove the hard-coded credentials (config.md lists admin/admin) — do not use default creds in production. 2) Update the project mapping (paths/job names) to match your environment; the shipped mappings are author-specific. 3) Be aware the skill assumes a browser automation tool and an active logged-in Jenkins session; ensure you trust the automation tool and its permissions. 4) If you plan to use the API path, implement safe credential handling (use platform secrets) and CSRF crumb handling instead of embedding passwords. 5) Limit who can invoke the skill (or require confirmation) to avoid accidental/unauthorized build triggers.
能力评估
Purpose & Capability
The name/description match the implementation: browser automation to click Jenkins 'Build Now' or fallback to API. However the included project mappings use hard-coded local paths (/Users/chengzongxin/...) and the config embeds Jenkins credentials (admin/admin), which makes the package specific to one developer's environment rather than general-purpose.
Instruction Scope
SKILL.md instructs the agent to open Jenkins pages and click the '立即构建/Build Now' button via a browser tool, or use the Jenkins API (not implemented). Instructions do not attempt to read unrelated system files or exfiltrate data. They do implicitly rely on a 'browser' automation tool and an existing logged-in session.
Install Mechanism
No install spec or external downloads; the skill is instruction-first with a small helper script. Nothing is written to disk by an install step beyond the included files.
Credentials
The skill does not request environment variables or external credentials, which is proportionate. However config.md contains explicit credentials (admin/admin) and local job paths; embedding default credentials in the shipped config is a security and operational concern and not justified by the skill's description.
Persistence & Privilege
No elevated persistence (always: false). The skill can be invoked by the agent normally; it does not request or modify other skills or system-wide configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jenkins-build - 安装完成后,直接呼叫该 Skill 的名称或使用
/jenkins-build触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布 jenkins-build 技能,实现自动化触发 Jenkins 构建任务
- 支持师傅端和用户端项目的打包构建
- 通过用户输入多种触发短语唤起构建流程
- 首选浏览器自动化方式,无需配置 API 权限
- 反馈构建编号、状态和 Jenkins 页面链接
元数据
常见问题
Jenkins Build 是什么?
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 212 次。
如何安装 Jenkins Build?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jenkins-build」即可一键安装,无需额外配置。
Jenkins Build 是免费的吗?
是的,Jenkins Build 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Jenkins Build 支持哪些平台?
Jenkins Build 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Jenkins Build?
由 chengzongxin(@chengzongxin)开发并维护,当前版本 v1.0.0。
推荐 Skills