Configuring a Self-hosted Repo 1.0
A new member must be assigned a specified role to use CodeArts Artifact. For details, see Configuring Repository Permissions 2.0.
Managing Repository Permissions
After a repository is created, the mapping between project members and repository roles is as follows:
- The project creator and project manager are repository administrators.
- The developer, test manager, tester, and operation manager are repository developers.
- The participant, viewer, and custom roles are repository viewers.
To add or remove permissions for self-hosted repo members, perform the following steps:
- Go to the self-hosted repo page and select the target repository from the list.
- Click Settings on the right of the page.
- Click the Repository Permissions tab. The added repository members are displayed in the list.
- Add members.
Click Add Members in the upper left corner, select a member, and click Next.
Figure 1 Adding members
- Assign roles to members.
Select Repository Administrator, Repository Developer, or Repository Viewer from the Repository Roles drop-down list.
Figure 2 Assigning roles to members
- Click OK. The member is added and the role is configured. The new member is displayed in the list.
- In the member list, select multiple members and click Repository Roles to configure their roles in batches.
Figure 3 Configuring repository roles in batches
Table 1 lists the operation permissions of each repository role.
Table 1 Role permissions of a self-hosted repo Operation/Role
Tenant administrator
Non-tenant administrator
Repository administrator
Developer
Viewer
Repository administrator
Developer
Viewer
Create a repository
√
√
√
×
×
×
Edit a repository
√
√
√
×
×
×
Manage the association between repositories and projects
√
√
√
×
×
×
Upload a component
√
√
×
√
√
×
Download a component
√
√
√
√
√
√
Delete components
√
√
×
√
√
×
Restore components
√
√
×
√
√
×
Permanently delete a component
√
√
×
√
√
×
Delete a repository
√
×
×
×
×
×
Restore a repository
√
√
×
√
√
×
Permanently delete a repository
√
×
×
×
×
×
Clear all
√
√
√
×
×
×
Restore all
√
√
√
×
×
×
Manage user permissions
√
√
√
√
×
×
Managing User Permissions in Batches by Tenant Account/Repository Administrator
The tenant account can add members to or delete members from a self-hosted repo. The administrator of each repository can manage roles of the members in the repository.
- Click the username in the upper right corner, and select from the drop-down list.
- Choose Artifact > User Permissions from the navigation pane.
- Click Add Member, select a member, and click OK.
- Assign roles to members.
- In the Operation column of the target member, click .
- Click the Unassigned tab.
- Select the desired repositories and roles, and click OK.
Figure 4 Assigning repository roles
- (Optional) Perform the operations listed in Table 2 on the User Permissions page.
Table 2 Related operations Operation
Description
Delete members
To delete a member, click in the corresponding row. To delete multiple members, select them and click Delete.
Modify member permissions
Click . In the displayed dialog box, select the repository name, and click OK.
View members
Select the package type and repository name in the upper left corner of the page. The member list of the repository is displayed.
Click Reset in the upper part of the page to view the list of all members.
Remove members
Select a repository and click in the member list to remove members from the repository.
NOTE:Removing a member from a repository does not affect their role or permissions in other repositories.
Deleting a member removes them from all related repositories, along with their associated permissions.
Search for members
Enter a member name or keyword in the search box at the top of the page, and click to search for a repository member.
Reset public password (only for tenant administrators)
The public password is used by the CodeArts Build to upload and download components to a self-hosted repo and is invisible on the page. Click Reset Public Password in the upper right corner of the page to reset the password.
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