be-jenkins-deploy
Steps
1. Resolve Jenkins job
If the job name is not in the user request, check conversation history for prior Jenkins calls (e.g., mcp__jenkins__triggerBuild or mcp__jenkins__getJob calls). If still unknown, ask: "Which Jenkins job should I deploy to?"
2. Resolve branch
Use the first source that yields a result, in priority order:
- Explicit arg — branch name passed directly by the user
- PR clue — if conversation contains a PR URL (
github.com/.../pull/N) or PR number, extract the head branch viagh pr view <N> --json headRefName -q .headRefName. If only a PR title is available, first resolve it to a PR number withgh pr list --search "<PR title>" --json number,title(pick the matching PR), then rungh pr view <N> --json headRefName -q .headRefName - Local git —
git branch --show-current
If all three fail, ask the user.
3. Fetch job parameters
Call mcp__jenkins__getJob with the job name. Prefer the job's parameter definitions (if present) to determine the parameter schema and any declared defaults. Build the trigger payload from those defaults, overriding only the branch parameter with the current branch.
More from sultanfarizbythen/skills
go-test-gen
Generate Go unit tests following project standards - table-driven tests with mockery mocks, explicit expectations with call counts, specific error objects, concrete structs. Use when writing unit tests for Go service layer or repository layer (NOT handler/API layer).
10go-code-review
Reviews Go backend PRs for bugs, potential bugs, anomalies, and redundant code. Specialized for Bythen repos (platform-svc, go-core) using wire DI, custom query builder, layered architecture (handler/service/repository). Use when reviewing Go PRs, diffs, or code changes.
10sql-query-generator
Generate and execute SQL queries for databases using the Kalysta MCP server. Use when the user needs to query database information, analyze data patterns, explore table contents, generate reports, or investigate data. Supports any database accessible via Kalysta MCP.
10create-devops-task
Creates draft tasks on the Bythen Devops GitHub Project board (https://github.com/orgs/tanookiai/projects/2/views/1). Always assigns novahariyabythen. Use when asked to add tasks, to-dos, or action items to the devops board.
5update-scientia-ip
Update the Scientia WiFi IP whitelist in Jenkins. Ensures WiFi connection, disconnects VPN, captures the current public IP, connects OpenVPN, triggers the Jenkins `change-ip-wifi-scientia` job with the captured IP, then disconnects VPN. Use when your WiFi IP has changed and you need to regain Scientia access.
5go-pr-description
>
4