Creating a Task
CodeArts Check supports different code repositories. Before task creation, you should:
- Create a project.
- (Optional) Create a code repository by referring to CodeArts Repo User Guide > "Creating a Repo".
- (Optional) Create a third-party code repository.
Constraints
- When the task to be deleted has a code repository with multiple branches, the deletion will be successful if there are fewer than 200 branches. Otherwise, the deletion will fail.
Creating a Task to Check Code from CodeArts Repo
If you select Automatically create Check task when creating a code repository in CodeArts Repo, a code check task will be created synchronously. You can view the task in the task list of CodeArts Check.
If you do not select Automatically create Check task when creating a code repository, perform these steps to create a task:
- Access CodeArts Check through a project.
- Click Create Task, configure parameters by referring to Table 1.
Table 1 Task parameters Parameter
Description
Project
Project that the task belongs to.
- This parameter is set by default when you access CodeArts Check from the project entry.
- During access through the service entry, select the project created in Creating a Project based on the site requirements.
Code Source
Select Repo.
Name
Customize your task name.
Enter 1 to 128 characters: letters, digits, underscores (_), hyphens (-), and periods (.).
Repository
Select the code repository to be checked.
Default Branch
Select the code branch to be checked.
Language
Select the code language to be checked.
- To modify the task name and default branch, go to the task details page, choose Settings > Basic Info, and then modify the target task.
- To delete a task, go to the task details page, choose Settings > Basic Info, and then delete the target task. Alternatively, click
in the row where the target task is located, and choose Delete from the drop-down list.
When the task to be deleted has a code repository with multiple branches, the deletion will be successful if there are fewer than 200 branches. Otherwise, the deletion will fail.
- Click Create Task.
Creating a Check Task from a Third-Party Code Repository
- The network may be unstable or other problems may occur when a third-party repository is used.
- It is advised to use the code import function of CodeArts Repo for secure, stable, and efficient download and build.
- Access CodeArts Check through a project.
- Click Create Task, configure parameters by referring to Table 2.
Table 2 Parameters Parameter
Description
Project
Project that the task belongs to.
- This parameter is set by default when you access CodeArts Check from the project entry.
- During access through the service entry, select the project created in Creating a Project based on the site requirements.
Code Source
- Select Git. For code hosted on other services, use Git to pull the code.
Name
Customize your task name.
Service Endpoint
Select the service endpoint connected to the third-party repository. If no endpoint is available, create one by referring to Creating a Service Endpoint.
Repository
Enter the code repository to be checked.
Default Branch
Enter the repository branch to be checked.
Language
Select the code language to be checked.
- To modify the task name and default branch, go to the task details page, choose Settings > Basic Info, and then modify the target task.
- To delete a task, go to the task details page, choose Settings > Basic Info, and then delete the target task. Alternatively, click
in the row where the target task is located, and choose Delete from the drop-down list.
When the task to be deleted has a code repository with multiple branches, the deletion will be successful if there are fewer than 200 branches. Otherwise, the deletion will fail.
- Click Create Task.
Feedback
Was this page helpful?
Provide feedbackThank 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