buildgit
1
总安装量
1
周安装量
#46792
全站排名
安装命令
npx skills add https://github.com/gclayburg/skills --skill buildgit
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
gemini-cli
1
Skill 文档
buildgit
A unified CLI for git operations with Jenkins CI/CD integration.
Prerequisites
Before running any command, verify:
- Jenkins env vars are set:
JENKINS_URL,JENKINS_USER_ID,JENKINS_API_TOKEN - Project has
JOB_NAME=<name>in its CLAUDE.md or AGENTS.md
If any prerequisite is missing, tell the user what’s needed instead of attempting the command.
The buildgit script is bundled at scripts/buildgit within this skill package.
Commands
| Command | Purpose |
|---|---|
scripts/buildgit status |
Jenkins build status snapshot |
scripts/buildgit status -f |
Follow builds in real-time (Ctrl+C to stop) |
scripts/buildgit status --json |
Machine-readable Jenkins build status |
scripts/buildgit push |
Push + monitor Jenkins build until complete |
scripts/buildgit push --no-follow |
Push only, no build monitoring |
scripts/buildgit build |
Trigger a new build + monitor until complete |
scripts/buildgit build --no-follow |
Trigger only, no monitoring |
scripts/buildgit --job <name> <cmd> |
Override auto-detected job name |
Interpreting Output
Exit codes:
| Code | Meaning |
|---|---|
| 0 | Success (build passed, or git command succeeded) |
| 1 | Build failed, or an error occurred |
| 2 | Build is currently in progress |
Build states:
SUCCESSâ build passed, all tests greenFAILUREâ build failed; output includes failed stage and error detailsBUILDINGâ build is still runningABORTEDâ build was manually cancelled
For failures, summarize the failed stage name, error logs, and test failure details for the user.
Dynamic Context
To inject live build state into context before reasoning about build issues:
!`scripts/buildgit status --json 2>/dev/null`
Reference
See references/reference.md for full command documentation, example output, and troubleshooting.