Configuring a Pipeline Template
You can quickly generate a pipeline based on a template. The template page can be accessed via:
- Homepage: Access the Pipeline homepage and switch to the Templates tab page.
- Project: Access the pipeline list in a project and choose More > Templates in the upper right corner.
The templates in Templates can be selected during pipeline creation.
Template Types
CodeArts Pipeline provides system and custom templates.
You can perform the following operations on templates.
Icon |
Description |
---|---|
If you click this icon, you will be redirected to the page where you can quickly create a pipeline using a template. |
|
Click this icon to favorite a template. After a template is favorited, the icon changes to . You can click to unfavorite the template. |
|
|
System templates are used to clone or generate pipelines. They cannot be edited or deleted.
Creating or Configuring a Template
- Access the Templates tab page.
- Click Create Pipeline Template. The Task Orchestration tab page is displayed.
Configure basic information, stages/jobs, and parameters.
- Basic Information: Specify the template name (mandatory), language (Java, Python, Node.js, Go, .Net, C++, PHP), and description (optional). Language is None by default.
- Code Source: You do not need to set this parameter.
- Admission Settings: This function is not supported for template orchestration.
- Task Orchestration: Pipeline stages and some extensions can be added to a pipeline template. After jobs such as build, code check, deployment, and API test are configured in a template, corresponding jobs will be created when you create a pipeline using this template.
- Parameter Configuration: Switch to the Parameter Configuration tab page and add parameters to the template. Pipeline template parameters include custom and predefined parameters. Custom parameters include string, enumeration, and auto-increment types. For details about how to configure parameters, see Configuring Pipeline Parameters.
- After configuring the information, click Save.
Creating a Pipeline
- On the Templates page, search for the target template, and click in the Operation column.
- On the Create Pipeline page, enter a pipeline name, select a project, select a code source, set other parameters, and click OK.
- Access the Task Orchestration page.
- You can customize the template or directly click Save.
- For the template-generated pipeline, jobs mounted to it are generated by the system. To mount custom jobs to the pipeline, manually add them after the pipeline was generated.
- After configuring the information, click Save.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot