### Create Pipeline: Defining Stages, Jobs, and Steps Source: https://github.com/tehilathestudent/huawei-codearts-docs/blob/main/create-codearts-pipeline.md Explains how to populate the `body.definition` field for a pipeline, which involves an array of stages. Each stage contains a job, and each job contains a step. It specifies that `body.definition.stage[].job[].step[].task` should be a plugin's unique name, obtainable via `queryExtensionsList`. It also details how to fill `inputs` for each task by querying `queryExtensionsInputConfiguration`. ```APIDOC Pipeline Definition Structure (body.definition): stage[]: # Array of stages job[]: # Array of jobs within a stage (typically 1 job per stage) step[]: # Array of steps within a job (typically 1 step per job) task: Plugin unique name (e.g., official_devcloud_cloudBuild) Source: Use tool queryExtensionsList | data[].plugins_list[].plugin_name inputs[]: # Array of input parameters for the task Fill body: Get resource pipeline-extensions://{plugin_name} Source: Use tool queryExtensionsInputConfiguration ``` -------------------------------- ### Create Pipeline: Configuring Source Repositories Source: https://github.com/tehilathestudent/huawei-codearts-docs/blob/main/create-codearts-pipeline.md Details the process of creating a new pipeline using the `CreatePipeline` tool and configuring its `body.sources` field. Specifically, it outlines how to integrate CodeArts Repo (CodeHub) repositories by specifying `type`, `codehub_id`, `git_type`, `ssh_git_url`, `git_url`, and `repo_name`. It also indicates that `listProjectRepositories` tool should be used to retrieve repository details. ```APIDOC CreatePipeline Tool Usage: body.sources: type: "code" params: # For CodeHub (codearts-repo) repositories: if url contains 'codehub': codehub_id: Use tool listProjectRepositories | .result.repositories[].repository_id (requires user consent) git_type: "codehub" ssh_git_url: Use tool listProjectRepositories | .result.repositories[].ssh_url git_url: Use tool listProjectRepositories | .result.repositories[].https_url repo_name: Use tool listProjectRepositories | .result.repositories[].repository_name ``` -------------------------------- ### Recommended CodeArts Plugins for Pipeline Tasks Source: https://github.com/tehilathestudent/huawei-codearts-docs/blob/main/create-codearts-pipeline.md Provides a list of recommended official CodeArts plugins for common development tasks within a pipeline. It maps specific purposes like building, code checking, and deploying to their corresponding plugin names and the CodeArts modules they integrate with. ```APIDOC CodeArts Plugin Usage Recommendations: Purpose: Build image, Build code package Plugin Name: official_devcloud_cloudBuild Integrates: CodeArts Build module Purpose: Code-check Plugin Name: official_devcloud_codeCheck Integrates: CodeArts Check module Purpose: Deploy application, Deploy K8s, Deploy to host Plugin Name: official_devcloud_deploy Integrates: CodeArts Deploy module ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.