Multica Platform Jenkins logo

Multica Platform Jenkins

Community
it235
multica-platform-jenkins

Jenkins 读写:触发带参构建、轮询状态、取控制台日志。平台 skill,凭据共用域账号。Python 实现,Windows / Linux 通用。

Overview

Publisherit235
Repositorymultica-best-practices
Skill namemultica-platform-jenkins
Stars
199
Forks
29
Bundled files
16
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by it235 on GitHub. Read the source before you install it.

Installation

Install the Multica Platform Jenkins AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/it235/multica-best-practices/tree/main/templates/zh_CN/skills/platform/multica-platform-jenkins
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/it235/multica-best-practices.git /tmp/multica-best-practices
mkdir -p .claude/skills
cp -r /tmp/multica-best-practices/templates/zh_CN/skills/platform/multica-platform-jenkins .claude/skills/multica-platform-jenkins
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Multica Platform Jenkins in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Multica Platform Jenkins on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Multica Platform Jenkins is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Platform · Jenkins

Purpose

Jenkins 读 + 写能力:触发 Job、轮询构建、取 consoleText、回传构建 URL。

跨平台:Python 3,Windows / Linux 一致。
参数自动发现:连 Jenkins API 读取每个 Job 的必填参数,禁止 Agent 硬编码参数名。

默认 Jenkins:http://<JENKINS_URL>

Agent 标准流程(必读)

text
1. 解析 service(jobs-catalog / issue_service_map)+ **deploy branch**(Issue「Git 分支」区块,非 feature)
2. discover(必做)— 默认从 lastSuccessfulBuild 复制参数,仅覆盖 deploy branch:
     python scripts/trigger_env.py --env sit --service <service> --branch release/<ISSUE>-<slug> --discover-only --json
3. ready=false → --param 补 missing 或 BLOCKED 问人类
4. 触发:multica-artifact-cicd-sync → trigger_cicd.py --json

参数优先级:--param > 分支 hint(branchName 等)> 上次 SUCCESS 构建参数 > Jenkins 默认值

Files

text
multica-platform-jenkins/
├── SKILL.md
├── config.yaml
├── jobs-catalog.yaml     # dev/sit Job 全量清单(service → Job 名)
├── reference.md
├── .env.example
└── scripts/
    ├── trigger_env.py    # ★ 按 env + service 触发
    ├── list_jobs.py      # 列出 / 查询 Job
    ├── jenkins_cli.py    # 底层 API
    ├── build_sit.py      # 兼容别名 → trigger_env --env sit
    └── lib/

安装依赖(一次)

bash
pip install -r scripts/requirements.txt

列出 Job

bash
python scripts/list_jobs.py --env dev
python scripts/list_jobs.py --env sit --service <service>

发现参数(连 Jenkins,按 Job 实时拉取)

bash
python scripts/jenkins_cli.py discover-params --env sit --service <service> --branch feature/<ISSUE_KEY>-foo --json

返回示例(节选):

json
{
  "ready": true,
  "last_success": {
    "number": 795,
    "url": "http://<JENKINS_URL>/job/<JENKINS_JOB_NAME>/<BUILD_ID>/",
    "params": { "env": "sit", "deployVersion": "1.75.0_795", "branchName": "release/20260826" }
  },
  "parameters": [
    { "name": "branchName", "last_success_value": "release/20260826", "resolved": "feature/<ISSUE_KEY>-foo", "source": "hint:branch" },
    { "name": "deployVersion", "last_success_value": "1.75.0_795", "resolved": "1.75.0_795", "source": "last_success" }
  ]
}

触发构建(默认 auto-params)

bash
python scripts/trigger_env.py --env sit --service <service> --branch feature/<ISSUE_KEY>-foo --json

# 补缺失参数
python scripts/trigger_env.py --env sit --service <service> --branch feature/... --param deployVersion=1.75.0_795 --json

凭据

变量说明
ATLASSIAN_USER / ATLASSIAN_PASS域账号(优先)
JENKINS_USER / JENKINS_PASSWORDskill .env 回退
JENKINS_CURL_RESOLVEDNS 绕行 host:port:ip(见 reference.md)

成功标准

  • 脚本 exit code 0
  • 每个 build result=SUCCESS
  • 回传构建 URL 列表

与编排 skill 的关系

编排 skill调用
multica-artifact-cicd-synctrigger_cicd.py → 内部调用本 skill 的 Python 脚本

为什么有效

Python + Jenkins API 参数发现:不同项目参数名不同,Agent 先 discover 再 trigger,避免写死 branchName。Job 名清单在 jobs-catalog.yaml。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Multica Platform Jenkins AI skill do?

Jenkins 读写:触发带参构建、轮询状态、取控制台日志。平台 skill,凭据共用域账号。Python 实现,Windows / Linux 通用。

Why use Multica Platform Jenkins on TypingMind?

Because you install it once and use it with any model. Multica Platform Jenkins is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Multica Platform Jenkins in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/it235/multica-best-practices/tree/main/templates/zh_CN/skills/platform/multica-platform-jenkins. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Multica Platform Jenkins?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Multica Platform Jenkins?

As many as you like. As long as a model supports skills, you can use Multica Platform Jenkins with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Multica Platform Jenkins AI skill free?

Yes. It is published on GitHub by it235 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇