Jenkins Build
name: jenkins-build
by chengzongxin · published 2026-04-01
$ claw add gh:chengzongxin/chengzongxin-jenkins-build---
name: jenkins-build
description: 自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
metadata: {"clawdbot":{"emoji":"🔨","triggers":["打个师傅包","师傅包","打师傅包","打个用户包","用户包","打用户包","触发构建","Jenkins 构建"]}}
---
# Jenkins Build
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
功能
自动化触发 Jenkins 构建任务,支持师傅端和用户端项目打包。
触发条件
用户提到以下任一短语时激活:
项目映射
| 项目 | Jenkins 任务名 | 路径 | 描述 |
|------|-------------|------|------|
| 师傅端 | `worker` | `/Users/chengzongxin/worker-rn` | 师傅端热更包 |
| 用户端 | `user` | `/Users/chengzongxin/user` | 用户端包 |
实现方式
首选:浏览器自动化
利用用户已登录的浏览器 session,通过 browser 工具点击 Jenkins 界面的"立即构建"按钮。
步骤:
1. 用 `browser action=open` 打开项目页面:`http://localhost:8080/job/{任务名}/`
2. 用 `browser action=snapshot` 获取页面元素
3. 找到"立即构建"链接(aria ref 包含"立即构建"或"Build Now")
4. 用 `browser action=act kind=click` 触发构建
5. 再次 snapshot 确认构建已触发,返回构建编号和状态
备选:API 方式(需配置)
如果浏览器不可用,可尝试 API 方式,但需要解决 CSRF crumb 问题。
输出
构建触发后,向用户反馈:
注意事项
扩展
未来可支持:
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...