Help Center> CodeArts Build> User Guide> Creating a Build Task
Updated on 2023-12-06 GMT+08:00

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

  1. Log in to the CodeArts Build homepage.
  2. 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.
    • GitHub: For code hosted on GitHub, you can use the GitHub connection to pull the code. For details, see Using GitHub for Build.
    • 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

  1. Click Next. The Build Template page is displayed.
  2. 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

  1. Click Next. The Build Action tab page is displayed, showing the default action combination of the selected template.
  2. 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.