multica-artifact-cicd-sync

CI/CD 产物编排:在 G2 PASS 且代码已 push 后调用 multica-platform-jenkins 触发 dev/sit 构建,回写 JIRA 并回传部署 URL。以 Python 实现,适用于 Windows / Linux。

仓库最近推送
GitHub Stars
299
Forks
40
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "multica-artifact-cicd-sync":https://skillpi.com/zh/skills/deepskill-778984b0beae1c572b1e3b9ca11e31d6aeaaeaaf37a87a6211ef62bad8ab9d62。安装前核对上游来源和版本:https://github.com/it235/multica-best-practices。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

CI/CD 产物编排:在 G2 PASS 且代码已 push 后调用 multica-platform-jenkins 触发 dev/sit 构建,回写 JIRA 并回传部署 URL。以 Python 实现,适用于 Windows / Linux。

0 下载

介绍来源: third_party · it235 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: multica-artifact-cicd-sync
description: "CI/CD artifact-orchestration skill (placeholder shell): after G2 PASS and code push, call the underlying CI/CD platform skill to trigger dev/sit builds, write back to the Issue, and return the deploy URL. Parameters auto-discovered from the CI API; the orchestration layer never hardcodes parameter names. Concrete platform in the multica-platform-* layer."
metadata:
  layer: orchestration
  orchestrates:
    - multica-platform-jenkins
    - multica-platform-jira
  runtime:
    python: ">=3.10"

Artifact · CI/CD Sync (orchestration, placeholder shell)

Purpose

After G2 PASS + push, call the underlying CI/CD platform skill to trigger build/deploy. Parameters auto-discovered from the CI API; the orchestration layer never hardcodes parameter names.

Agent flow

1. discover-only (recommended first, check missing):
   python scripts/trigger_cicd.py --issue <ISSUE-KEY> --env sit --branch release/<ISSUE-KEY>-<slug> --discover-only --json
2. trigger (**only the Issue deploy branch, never a feature branch**):
   python scripts/trigger_cicd.py --issue <ISSUE-KEY> --env sit --branch release/<ISSUE-KEY>-<slug> --json
3. missing params: append --param name=value

Parameter resolution

Default (use_last_success=true):

  1. Read all build params of lastSuccessfulBuild
  2. Only replace branch-type params (branchName / branch / gitBranch …) with --branch
  3. --param may override any item; --no-last-success disables this

Workflow A: dev deploy

python scripts/trigger_cicd.py --issue <ISSUE-KEY> --env dev --service <service> --branch release/<ISSUE-KEY>-<slug> --json

Workflow B: sit deploy (G2.5 → Tester T3)

python scripts/trigger_cicd.py --issue <ISSUE-KEY> --env sit --branch release/<ISSUE-KEY>-<slug> --json

Issue-prefix → logical-service mapping in config.yaml → issue_service_map, so --service is optional.

Workflow C: multi-service

python scripts/trigger_cicd.py --env sit --service svc-a,svc-b --branch release/<ISSUE-KEY>-<slug> --json

Usage (role side)

After G2 PASS and code push, use multica-artifact-cicd-sync to trigger CI/CD and return the deploy link.

Why it works

The orchestration layer depends only on the script; Issue-prefix auto-maps to the logical service in jobs-catalog.yaml. The underlying CI system (Jenkins / GitLab CI / GitHub Actions / etc.) is wrapped by the multica-platform-* layer, invisible to this skill.

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 提供清晰的 CI/CD 编排流程,解决 G2 PASS 后触发构建的实际工程痛点
  • 支持多环境(dev/sit)和多服务部署,具有一定的通用性
触发精准85/100

亮点

  • 触发场景描述清晰(G2 PASS 且代码已 push 后调用),边界明确
  • 提供了具体的使用命令示例,覆盖多种工作流
结构规范75/100

待提升项

  • 缺少端到端完整示例 原报告严重程度:轻微

    文档中提供了命令示例,但缺少从触发到获取部署 URL 的完整端到端示例。

    改进建议:补充一个完整的端到端示例,展示从触发构建到获取部署 URL 的完整流程。

亮点

  • 文档结构清晰,包含 Purpose、Agent flow、Parameter resolution、Workflow A/B/C、Usage 等章节
  • frontmatter 完整,步骤划分明确
执行可靠55/100

待提升项

  • 脚本来源不明/异常处理缺失 原报告严重程度:重大

    Skill 依赖 `scripts/trigger_cicd.py` 脚本和底层 `multica-platform-*` 技能,但未明确说明脚本的来源、完整性以及异常处理机制。

    改进建议:明确说明 `scripts/trigger_cicd.py` 脚本的来源和完整性,补充异常处理机制(如网络错误、认证失败、参数缺失等),并为不可逆操作(如触发构建)添加确认机制。

亮点

  • 提到了参数自动发现机制,避免硬编码参数名
证据可验 (前四项均值)70/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。