Help Center> CodeArts Artifact> Getting Started> Getting Started with a Release Repo
Updated on 2023-05-06 GMT+08:00

Getting Started with a Release Repo

This section describes the general procedure of a release repo to help you quickly get started with it.

Before using a release repo, ensure that you already have a project. If no project is available, create one.

Figure 1 shows the general procedure of a release repo.

Figure 1 General procedure of a release repo

Manually Uploading a Software Package on the Release Repo Page

  1. Log in to CodeArts, choose Services > CodeArts Artifact from the top menu, and click the Release Repos tab.
  2. Go to the repository with the same name as the project and click Upload in the upper right corner.
  3. Select the target software package and click Open.

Releasing a Software Package via a Build Task to a Release Repo

The following procedure uses Maven as an example to describe how to release a software package via a build task to a release repo.

  1. Prepare a code repository.

    1. Log in to CodeArts and go to a created project.
    2. Go to CodeArts Repo and create a Maven repository. For details, see Cloud Repository Creation. This procedure uses the Java Web Demo template.

  2. Configure and execute a build task.

    1. Go to the code repository, and click Create Build Task in the upper right. The Create Task page is displayed.

      Select Maven and click Next.

    2. Edit the build actions as required. In this example, the default values in the template are used.
    3. Click Create and Run to start the build task.

      After the task is successfully executed, record the number following # in the upper left, as shown in Figure 2.

      Figure 2 Build task

  3. View the software package.

    1. Access the release repo of a project.
    2. Go to the folder with the same name as the build task.
    3. Go to the folder named after the number on the build task page, and view the generated software package, as shown in Figure 3.
      Figure 3 Viewing the software package

      If you have set Release Version for the Upload to Release Repository action, the software package will be saved in a folder named after the release version.

Obtaining a Software Package from a Release Repo for Deployment

This section uses the software package released in Releasing a Software Package via a Build Task to a Release Repo as an example to describe how to obtain this package from a release repo for deployment.

  1. Create a deployment task and configure it as required. In this example, configure it as follows:

  2. On the Environment Management tab page, add a host group. For details, see Creating a Host Group and Adding Trusted Hosts to the Host Group.
  3. Click Save & Deploy. Execute the deployment task. When the task status becomes successful, the task has obtained the software package from the release repo and has deployed it on the target host.