← Back to Skills Marketplace
Jenkins Build
by
chengzongxin
· GitHub ↗
· v1.0.0
· MIT-0
212
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install jenkins-build
Description
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
README (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 服务状态和登录状态
扩展
未来可支持:
- 查看构建日志
- 获取构建产物下载链接
- 构建失败自动通知
- 支持更多项目(通过配置映射表)
Usage Guidance
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install jenkins-build - After installation, invoke the skill by name or use
/jenkins-build - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- 首次发布 jenkins-build 技能,实现自动化触发 Jenkins 构建任务
- 支持师傅端和用户端项目的打包构建
- 通过用户输入多种触发短语唤起构建流程
- 首选浏览器自动化方式,无需配置 API 权限
- 反馈构建编号、状态和 Jenkins 页面链接
Metadata
Frequently Asked Questions
What is Jenkins Build?
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。 It is an AI Agent Skill for Claude Code / OpenClaw, with 212 downloads so far.
How do I install Jenkins Build?
Run "/install jenkins-build" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Jenkins Build free?
Yes, Jenkins Build is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Jenkins Build support?
Jenkins Build is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Jenkins Build?
It is built and maintained by chengzongxin (@chengzongxin); the current version is v1.0.0.
More Skills