Help Center> CodeArts Build> Getting Started> Graphical Build> Getting Started with CodeArts Build
Updated on 2024-04-18 GMT+08:00

Getting Started with CodeArts Build

CodeArts Build provides an easy-to-use, cloud-based build platform that supports multiple programming languages, helping you achieve continuous delivery, with shorter period and higher efficiency. With CodeArts Build, you can create, configure, and run build tasks with a few clicks. CodeArts Build also supports automated code retrieval, build, and packaging, as well as real-time status monitoring.

This document describes the basic operations of CodeArts Build, helping you quickly get started.

Prerequisites

  • You have registered a HUAWEI ID and enabled Huawei Cloud services.
  • A project is available. If no project is available, create one first.
  • You have created a code repository in the project and have uploaded code to the repository. If no code repository is available, perform the following steps to create one:
    1. Log in to the CodeArts homepage using the Huawei Cloud account.
    2. Click the name of the project to create a repository for it.
    3. In the navigation pane, choose Code > Repo.
    4. On the CodeArts Repo homepage, click New Repository and select Template.
    5. On the displayed page, click Next, and search for and select the Java Ant Demo template.
    6. Click Next. Enter a repository name and click OK

Creating a Build Task

  1. In the navigation pane, choose CICD > Build.
  2. Click Create Task. The Basic Information page is displayed.
  3. Configure the parameters and click Next.

    Table 1 Configuring basic information

    Parameter

    Description

    Task Name

    Specifies the name of the task.

    Code Source

    Select Repo.

    Source Code Repository

    Select the repository created in Prerequisites.

    Branch

    Select the branch created when you create the repository (see Prerequisites). If no branch is available, select the default master.

    Description

    Describe the build task.

  4. Select Ant as the build template. Click Next.
  5. Retain the default settings on the Build Actions page.

    You can also customize build actions.

  6. Click Create.

Running the Build Task

This section describes how to run a build task and view the build result.

  1. Click a build task name.
  2. On the Build History tab, click Run in the upper right to start the task.

    • If the following page as shown in Figure 1 is displayed, the task is successfully executed.
      Figure 1 Build success
    • If the task fails, rectify the fault based on the messages or logs.

Viewing the Build Package

The build package generated using default settings is stored in the build_name/build_time directory of Release Repos. This section describes how to view the build package and verify the release result.

  1. In the navigation pane, choose Artifact > Release Repos.
  2. Go to the release repos to view the released software package. The name of the software package is the same as that of the build task (see Creating a Build Task), as shown in Figure 2.

    Figure 2 Viewing the software package

Clearing Resources

To avoid unnecessary fees, you are advised to release build resources after completing tasks.

Released resources cannot be recovered. Exercise caution when performing these operations.