Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

jenkins

bởi guoway

Git & GitHub
820Lượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Interact with Jenkins CI/CD server via REST API.

Mô tả

Kỹ năng này làm gì

Connects to a Jenkins CI/CD server via REST API to manage jobs, builds, and nodes. Supports triggering builds with parameters, streaming console output, stopping builds, and inspecting the queue. Credentials and server URL are configured via environment variables to support multiple Jenkins instances.

Lets the agent interact with Jenkins directly from a conversation without opening the Jenkins UI or writing one-off curl commands.

Khi nào nên dùng

  • Trigger a deployment build with a specific branch and environment
  • Check whether a nightly build passed or failed
  • Stream console logs from a running build to diagnose failures
  • Stop a stuck build that is blocking the pipeline
  • List all nodes to see which agents are online

Quy trình ví dụ

ĐẦU VÀO

User asks: trigger a build of 'deploy-api' on the main branch targeting production

AGENT
  1. 1

    Reads JENKINS_URL, JENKINS_USER, and JENKINS_API_TOKEN from environment

  2. 2

    Runs build command with --job 'deploy-api' and --params '{"BRANCH":"main","ENV":"prod"}'

  3. 3

    Polls status command until build completes

  4. 4

    Fetches console output with --last flag to confirm result

ĐẦU RA

Build #47 of deploy-api completed successfully; console tail shows deployment finished

Yêu cầu

  • JENKINS_URL environment variable
  • JENKINS_USER environment variable
  • JENKINS_API_TOKEN environment variable (generated from Jenkins user settings)

Cài đặt

clawhub install guoway/jenkins

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết