跳到正文
TakoAPI
返回技能列表

jenkins

由 guoway 提供

Git & GitHub
820下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Interact with Jenkins CI/CD server via REST API.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

前置要求

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

安装

clawhub install guoway/jenkins

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接