Creating a CodeArts Project and Configuring Code Check Rules
Creating a Project and a Code Repository
- Log in to CodeArts console using an account with the project creation permission and select AP-Singapore.
- Click Go to Workspace in the upper right corner to go to the CodeArts project homepage.
- Click Create > Create Project.
- On the CodeArts homepage, find the Scrum template and click Select.
- Enter a project name (for example, req-demo), and click OK. Keep the name under 128 characters.
The project is created, and the Work Items page of CodeArts Req is displayed. By default, the project creator is the project manager.
- In the navigation pane on the left, choose Code > Repo as the project manager to access CodeArts Repo.
- Click Create Repository.
- Select Template and click Next.
- Select the Java Web Demo template and click Next.
- Enter a repository name (for example, repo-demo). Start the name with a letter, digit, or underscore (_), and use letters, digits, hyphens (-), underscores (_), and periods (.). Do not end the name with .git, .atom, or a period.
- Choose Public > For project members under Visibility, and click OK.
The repository is created, and its Code page is displayed.
- Choose Code > Branches and click Create Branch. In the displayed dialog box, set the following parameters and click OK. A message is displayed, indicating that the operation is successful. The Files page is automatically displayed, showing the develop-dev branch.
Table 1 Setting parameters for creating a branch Parameter
Example Value
Description
Based On
master
Select an existing branch.
Branch Name
develop-dev
Name of the branch you are creating. The name cannot exceed 200 bytes.
- Do not start with a hyphen (-), period (.), refs/heads/, or refs/remotes/.
- Do not use spaces or special characters such as open square brackets ([), backslashes (\), less-than signs (<), tildes (~), carets (^), question marks (?), asterisks (*), exclamation marks (!), single quotation marks ('), double quotation marks ("), and vertical bars (|).
- Do not end with a period (.), slash (/), or .lock.
CodeArts Req Work Items to Associate
/
Associate an existing work item with the branch.
By default, no Req work item is associated.
- Click Settings on the top navigation bar, choose Security Management > Permissions in the left navigation pane, and enable Use Project Permissions to inherit project-level permissions.
Configuring Code Check Rules
- Log in to CodeArts console as a project manager, and select AP-Singapore.
- Click Go to Workspace in the upper right corner to go to the CodeArts project homepage.
- Click the req-demo card to go to the homepage of the project.
- In the navigation pane, choose Code > Check to go to the CodeArts Check homepage.
- On the Tasks tab, click
in the row where repo-demo-check is located, and click Settings to go to the Basic Info page of repo-demo-check. - On the Basic Info page, set Default Branch to develop-dev and click Save.
- On the Check Scope page, set Version Check to Last Commit and click Save.
- On the Integration Service page, select Triggered upon code commit and click Save.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot