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.
Manually Uploading a Software Package on the Release Repo Page
- Log in to CodeArts, choose Release Repos tab. from the top menu, and click the
- Go to the repository with the same name as the project and click Upload in the upper right corner.
- 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.
- Prepare a code repository.
- Log in to CodeArts and go to a created project.
- Go to CodeArts Repo and create a Maven repository. For details, see Creating a Repository Using a TemplateCreating a Repository Using a Template. This procedure uses the Java Web Demo template.
- Configure and execute a build task.
- Go to the code repository, and click Create Build Task in the upper right. The Create Build Task page is displayed.
Select Maven and click Next.
- Edit the build actions as required. In this example, the default values in the template are used.
- 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.
- Go to the code repository, and click Create Build Task in the upper right. The Create Build Task page is displayed.
- View the software package.
- Access the release repo of a project.
- Go to the folder with the same name as the build task.
- Go to the folder named after the number on the build task page, and view the generated software package, as shown in Figure 3.
If you have set Version for the Upload Software Package to Release Repos 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.
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose . The Host Clusters page is displayed.
- Click Create Host Cluster, enter the following information, and click Save. Add the target host to the created host cluster.
- Create an application. Configure it as required. In this example, configure it as follows:
- Select the Deploy a Tomcat Application template.
- In the Select a Deployment Source action, select the software package stored in the location mentioned in Releasing a Software Package via a Build Task to a Release Repo.
- On the Environment Management tab page, create environment and add hosts. For details, see Creating a Host Group and Adding Trusted Hosts to the Host Group.
- Click Save & Deploy. Execute the deployment application. When the deployment status becomes successful, the deployment application has obtained the software package from the release repo and has deployed it on the target host.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.