Help Center/ CodeArts Repo/ Getting Started/ Developing Java Code in a Scrum Project
Updated on 2024-11-11 GMT+08:00

Developing Java Code in a Scrum Project

Before performing the following operations, ensure that your have permissions to create projects and log in to the CodeArts homepage. The following figure shows the process.

Figure 1 Java Code Development in a Scrum Project

Quickly Creating a Project and a Code Repository

  1. Register a Huawei Cloud account and log in to the Huawei Cloud Console.
  2. Click in the upper left corner of the page, and choose Developer Services > CodeArts from the service list.
  3. Click Access Service to go to the CodeArts homepage.
  4. Click Create Project, select Scrum as the project template, and enter basic project information.
  5. In the navigation pane on the left, choose Code > Repo. Click New Repository, choose Template > Java Maven Demo, enter a Repository Name, select Initial Settings, and set Visibility to Private.
  6. Click OK. The code repository is created and the code page is displayed.

Quickly Creating a Branch and a Code File

Create a branch and a code file. The procedure is as follows:

  1. Click Branches. On the branch page of the code repository, click Create Branch, and enter the Branch Name to create a branch based on the master branch. The code homepage is displayed.
  2. Choose Create > Create File. The homepage of the Create File is displayed.
  3. Enter a file name and select java from the text template drop-down list box on the right of the file name. The code file is created and the file list is displayed.

Creating and Merging an MR

Create and merge an MR. The procedure is as follows:

  1. Click Create MR. The Create Merge Request page is displayed. Enter the Title for the MR.
  2. In the upper right corner of the page, click Merge to merge the request.

After the MR is merged, you can clone the latest master branch. You can see that all the latest modified files have been merged.