- Home
- Skills
- Tencentblueking
- Bk Ci
- Managing Devops Pipeline
managing-devops-pipeline_skill
- Kotlin
2.5k
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill tencentblueking/bk-ci --skill managing-devops-pipeline- config.json170 B
- SKILL.md2.6 KB
Overview
This skill manages BlueKing (蓝盾) DevOps pipeline build operations: query build history, fetch start parameters, view build status, and trigger builds. It targets pipelines identified by projectId, pipelineId (p-...), and buildId (b-...), and is intended for CI/CD, deployment, and build orchestration tasks.
How this skill works
The skill calls MCP endpoints to list builds, retrieve build start parameters, check build status, and start builds. Before any start operation it displays the full start parameters to the user and requires explicit confirmation. It parses pipeline URLs to extract projectId and pipelineId and returns standardized status enums (SUCCEED, FAILED, CANCELED, RUNNING, QUEUE, STAGE_SUCCESS).
When to use it
- When you need to list recent or historical builds for a pipeline
- When preparing to trigger a build and you must review/confirm parameters
- When you need to poll or check the status of a running build
- When automating CI/CD steps that require programmatic start/stop/status checks
- When extracting projectId and pipelineId from BlueKing pipeline URLs
Best practices
- Always present the full body_param key-value list and get explicit user confirmation before calling the start API
- Validate projectId and pipelineId format (pipelineId starts with 'p-') before requests
- Use paginated listing for build history (page, pageSize) to avoid large responses
- Map returned status enums to clear UI states and alerts for RUNNING, FAILED, SUCCEED, etc.
- Log buildId and timestamps for audit and correlation with deployment records
Example use cases
- Fetch the last 10 builds for project 'your-project' and pipeline 'p-xxx' to display a history view
- Retrieve start parameters for a pipeline, show them to the operator, and start the build after confirmation
- Poll a build by buildId to update a dashboard until it reaches SUCCEED or FAILED
- Trigger a branch-specific build by sending body_param {"branch":"master"} after approval
- Extract projectId and pipelineId from a BlueKing console URL to populate request parameters
FAQ
Yes. The skill requires displaying all start parameters and receiving explicit user confirmation before invoking the build start API.
How do I extract projectId and pipelineId from a pipeline URL?
From URLs like https://.../console/pipeline/{projectId}/{pipelineId}: projectId is the segment after /pipeline/, pipelineId is the last segment starting with 'p-'.