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 DevCloud and choose .
- Go to the folder with the same name as the project and click Upload in the upper right.
- 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 DevCloud and go to the project.
- Go to CodeHub and create a Maven repository. For details, see Cloud Repository Creation. 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 Task page is displayed.
Select Maven and click OK.
- 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 Task page is displayed.
- View the software package.
- Choose .
- 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 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.
- Create a host group and add a host to it.
- Create a deployment task and configure it as required. In this example, configure it as follows:
- Select the Deploy a Tomcat Application template.
- Select the host group created in 1.
- 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, as shown in Figure 4.
- 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.
Feedback
Was this page helpful?
Provide feedbackFor any further questions, feel free to contact us through the chatbot.
Chatbot