yaml-pipeline-transfer

Converts YAML pipelines to and from an internal Pipeline Model for BK-CI v2.0 and v3.0.

2.5k|521|Updated May 29, 2019
One-click install
npx skills add https://github.com/TencentBlueKing/bk-ci --skill yaml-pipeline-transfer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yaml-pipeline-transfer
Source: https://github.com/TencentBlueKing/bk-ci/tree/main/ai/skills/yaml-pipeline-transfer
Command: npx skills add https://github.com/TencentBlueKing/bk-ci --skill yaml-pipeline-transfer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能提供将 YAML 流水线与内部 Pipeline Model 之间的双向转换能力,从而支持 Pipeline as Code(PAC)工作流的实现与维护。

Core Features & Use Cases

  • YAML ↔ Model 双向转换,支持模板引用、触发器配置及流水线扩展
  • 兼容 BK-CI 的 v2.0 与 v3.0 YAML 版本,涵盖触发器与阶段、模板、资源等要素
  • 快速从现有 YAML 生成模型以实现代码化管线,以及将模型导出为 YAML 以便版本控制和审阅

Quick Start

使用 YAML 流水线转换技能将现有 YAML 转换为模型,并可将模型重新导出为 YAML 以实现 PAC 集成。

Frequently Asked Questions about yaml-pipeline-transfer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert YAML pipelines to an internal Pipeline Model for Pipeline as Code?

You can convert YAML pipelines to an internal Pipeline Model using a Kotlin-based transfer engine to enable Pipeline as Code workflows, covering YAML-to-model mapping, template references, and triggers.

Can I export a Pipeline Model back to YAML for version control?

Yes, you can export an internal Pipeline Model back to YAML format. This model-to-YAML conversion allows you to manage pipeline configurations through version control and code review processes.

Does the YAML pipeline conversion support both v2.0 and v3.0 BK-CI YAML versions?

Yes, the YAML pipeline conversion supports both v2.0 and v3.0 BK-CI YAML versions. It handles template references, triggers, and pipeline extensions across both versions natively.

What do I need to set up before transferring BK-CI YAML pipelines?

You need a Kotlin-based transfer engine and BK-CI pipeline components to operate the YAML and Pipeline Model conversion. These dependencies are required to process the pipeline stages and resources.

What pipeline elements are covered during YAML and Pipeline Model conversion?

The YAML and Pipeline Model conversion covers triggers, stages, templates, and resources. It ensures seamless mapping of template references and pipeline extensions for Pipeline as Code workflows.

Related Skills