Creating a Build Task
Prerequisites
- A project is available. If no project is available, create one.
- A code repository has been created in the project. If no code repository is available, create one.
Configuring Basic Information
- Log in to the CodeArts Build homepage.
- Click Create Task. On the displayed page, configure the basic information of the build task.
Table 1 Basic information Parameter
Description
Task Name
Enter the name of the task.
Project
Select the project that the task belongs to.
Code Source
- Repo: By default, CodeArts Build pulls code from CodeArts Repo. Select a source code repository and branch.
- Git: For code hosted on other services, you can use a Git connection to pull the code. For details, see Using Git for Build.
- Pipeline: If the code source is from a pipeline, the code can be executed only by the pipeline driver and cannot be executed alone.
Description
Describe the task.
Configuring a Build Template
- Click Next. The Build Template page is displayed.
- Select a suitable build template and click Next. You can also select the Blank Template.
If the existing templates do not meet your needs, customize templates.
Configuring Build Actions
- Click Next. The Build Action tab page is displayed, showing the default action combination of the selected template.
- Click to add build actions as required.
For details, see Configuring Build Actions.
You can also use SoftWare Repository for Container (SWR) public images to build a custom environment.
Configuring Other Information
Configure information on other tab pages of the navigation bar.
- On the Basic Information tab page, configure the task name, project, code source, and task description.
- On the Build Actions tab page, configure build actions.
- On the Parameters tab page, customize parameters for running the build task.
- On the Schedule tab page, configure the scheduled execution and continuous integration triggering policy.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.