Help Center/ CodeArts Build/ User Guide (Ally Region)/ Getting Started/ Building with Ant and Uploading the Package to a Release Repo (x86, Preset Image, GUI)
Updated on 2026-01-08 GMT+08:00

Building with Ant and Uploading the Package to a Release Repo (x86, Preset Image, GUI)

In this section, you use CodeArts Build to build a project with Ant on an x86 server and upload the resulting software package to a release repo. These steps will be carried out through a graphical user interface (GUI).

Creating a CodeArts Repo Repository

  1. Log in to the CodeArts homepage.
  2. Click Create Project, and select the Scrum template. Set the project name to Scrum01 and keep the default values for other parameters. Click OK to access the project.
  3. In the navigation pane, choose Code > Repo.
  4. On the displayed page, click Create Repository. Select Template, and click Next.
  5. You will then be redirected to the Create Template Repository page. In the Select Repository Template stage, search for Java Ant Demo and select the template. Click Next.
  6. Set Repository Name to Repo01 and keep the default values for other parameters. 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 following parameters and click Next.

    Table 1 Basic information

    Parameter

    Description

    Name

    Assign a custom name to the build task, for example, BuildTask01.

    Code Source

    Select Repo to pull the code hosted in a CodeArts Repo repository for your build.

    Repository

    Select Repo01, the code repository created in section "Creating a CodeArts Repo Repository".

    Default Branch

    Keep the default value master.

    Description

    Optional. Enter additional information to describe the build task.

  4. Select the Ant template and click OK to create the build task. Then you will be redirected to the page for configuring build actions.
  5. On the Build Actions page, keep the default settings and click Save.

Running the Build Task

  1. Click the name of the build task.
  2. On the displayed Build History page, click Execute to start the build task. In the displayed dialog box, click OK.

    • The page shown in Figure 1 displays a successful run of the task.
      Figure 1 Build success
    • If the task fails, troubleshoot the issue by reviewing the prompt or analyzing the logs.
      Figure 2 Build failure

Viewing the Build Results

  1. In the navigation pane, choose Artifact > Release Repos.
  2. On the displayed page, find the folder that shares the same name as the build task (the name you specify when creating a build task), as shown in Figure 3. The software package can be found within this folder.

    Figure 3 Checking the software package

Clearing Resources

To avoid unnecessary charges, you are advised to release the following resources once your builds are finished.

  • In CodeArts Repo: Delete code repositories.
  • In the release repo: Delete software packages and by referring to CodeArts Artifact User Guide > "Release Repo (New Version)" > "Managing the Recycle Bin".

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