- Documentation
Code Pipeline
User guide
Custom pipeline steps
Create custom steps
Custom pipeline steps
Create custom steps
Create custom steps
To meet the personalization needs of different enterprises and fully leverage team creativity, Code Pipeline has introduced the capability for custom steps. This enables team members to package internal tools that they are familiar with and find easy to use as custom steps, thereby improving business delivery efficiency. This article explains how to create custom steps.
Background information
A custom step consists of a YAML description file. The YAML file contains basic information about custom steps, step input parameters, step output parameters, the step execution script (script), and the step image (image). When running Custom steps, the pipeline creates a group of Pods based on the current YAML and executes a script task.
The following is an example of a custom steps YAML file used in this document. You can quickly adapt this template—based on the version used for our team—to create custom steps suitable for your own team.
displayName: custom step v2-demo-doc
description: custom step v2-demo-doc
image: xxx.cr.volces.com/ns/busybox:latest
registry: xxx.cr.volces.com
username: xxx@1400******
export ENV=$(inputs.pipeline-env)
echo "PIPELINE_ID:$(PIPELINE_ID)"
echo "DATETIME:$(DATETIME)"
displayName: Execute a custom command
description: Execute a custom command
defaultValue: echo hello world
Prerequisites
Docker images for use by custom steps are ready. It is recommended to upload to the Volcano Engine image repository. For operations related to uploading to the Volcano Engine image repository, refer to Push and pull images. Limit
- Accounts with CPAdminAccess permission can create custom steps. IAM users can contact the corresponding Volcano Engine root user to be granted this permission. For specific operations, see Configure permissions.
- By configuring the image access credentials (imageCredential) in the YAML file, custom steps can use private images. If you have higher requirements for image security, we recommend using the following solutions.
tip
Solution introduction:
- Upload the built custom step image to the Volcano Engine private image repository. You can refer to Push and Pull Images for specific operations.
- Install the passwordless image pull component in Volcengine Kubernetes Engine, and set the private image repository to allow passwordless pulls. For specific operations, refer to Install the password-free component.
- Use Volcengine Kubernetes Engine clusters as a private resource pool to run custom pipeline steps. For specific operations, refer to Create a private resource pool.
Procedure
- Log in to Code Pipeline Console, and in the left navigation pane, select Template Marketplace > Step Template.
- On the step template page, click Create custom steps. The Create custom steps panel appears.
- In the text box on the left, write the step content according to the YAML requirements for custom steps.
- After you finish writing, click confirm.
- Custom steps that are successfully created will be displayed under the corresponding category.
What to do next
After custom steps are created successfully, team members can use them in the pipeline. For specific operations, refer to Use custom steps.
Last updated: 2025.09.10 17:37:25