Managing Self-hosted Repos
You can edit repository descriptions, add paths, delete repositories, and manage user permissions.
Editing Repository Descriptions and Paths
- Access the self-hosted repo homepage. In the left pane, click the name of the repository to be edited.
- Click Settings on the right of the page to display the basic information about a repository.
- Edit the repository description as required and click Submit.
On the basic information page, the repository name, package type, home project, and permission scope cannot be modified.
On the Basic Information page of the repository, enter the path and click to add paths for the Maven, npm, Go, PyPI, RPM and Conan repositories.
Click to delete a path.
Configuring Deployment Policies
The self-hosted repo supports three version policies: Allow redeploy, Disable redeploy, and Read-only. You can set whether to allow artifacts in the same path to be uploaded and overwrite the original package.
- Access the self-hosted repo homepage. In the left pane, click the repository name.
- Click Settings on the right of the page. The basic information about the repository is displayed. Click the Deployment Policies tab.
- Allow redeploy (selected by default): Artifacts in the same path can be uploaded. After being uploaded, the original package will be overwritten.
- Disable redeploy: Artifacts in the same path cannot be uploaded.
- Read-only: Artifacts cannot be uploaded, updated, or deleted. You can download an uploaded artifact.
- Click OK.
Deleting a Repository
You can delete a self-hosted repo. Deleted repositories are moved to the recycle bin.
- Access the self-hosted repo homepage. In the left pane, click the name of the repository to be deleted.
- Click Settings on the right of the page to display the basic information about a repository.
- Click Delete. Check that the deleted repository is no longer displayed in the repository list in the left pane.
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 O&M manager are repository developers.
- The participant, viewer, and customized roles are repository viewers.
To add or delete 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.
- Assign roles to the member.
Select Repository Administrator, Repository Developer, or Repository Viewer from the Repository Roles drop-down list.
- Click OK. The repository member is added and the repository role is configured. The newly added member is displayed in the list.
- In the member list, select multiple repository members and click Repository Roles to configure repository roles in batches.
The following table lists the operations of each repository permission.
Operation/Role |
Tenant Administrator |
Non-Tenant Administrator |
||||
Repository Administrator |
Developer |
Viewer |
Repository Administrator |
Developer |
Viewer |
|
Create a self-hosted repo |
√ |
√ |
√ |
× |
× |
× |
Edit a self-hosted repo |
√ |
√ |
√ |
× |
× |
× |
Manage the association between repositories and projects |
√ |
√ |
√ |
× |
× |
× |
Upload a private component |
√ |
√ |
× |
√ |
√ |
× |
Download a component |
√ |
√ |
√ |
√ |
√ |
√ |
Delete a component |
√ |
√ |
× |
√ |
√ |
× |
Restore a component |
√ |
√ |
× |
√ |
√ |
× |
Permanently delete a component |
√ |
√ |
× |
√ |
√ |
× |
Delete a repository |
√ |
× |
× |
× |
× |
× |
Restore a repository |
√ |
√ |
× |
√ |
√ |
× |
Permanently delete a repository |
√ |
× |
× |
× |
× |
× |
Clear recycle bin |
√ |
√ |
√ |
× |
× |
× |
Restore all |
√ |
√ |
√ |
× |
× |
× |
Manage user permissions |
√ |
√ |
√ |
√ |
× |
× |
Set-Up
You can connect the self-hosted repo to a local development environment so that private components in the self-hosted repo can be used during local development.
- Access the self-hosted repo homepage. In the left pane, click the name of the repository to be connected to the local development environment.
- Click Set Me Up on the right of the page.
- In the displayed dialog box, click Download Configuration File to download the configuration file to your local directory.
- Copy the downloaded file to the corresponding directory based on the instructions in the Information dialog box.
Resetting the Repository Password
You can reset the password in the self-hosted repo configuration file. After the password is reset, download the configuration file again to replace the original file.
- Access the self-hosted repo homepage. Click above the repository list on the left and choose Reset Repository Password.
- In the displayed dialog box, click OK. Check that a message is displayed indicating the password has been reset.
Obtaining the Self-hosted Repo Path
The path of the self-hosted repo will be used when you connect the repository to the local development environment. You can perform the following operations to obtain the path:
- Access the self-hosted repo homepage. In the left pane, click the repository name.
- The path of the self-hosted repo is displayed in the repository details on the page. You can click to obtain the path.
Obtaining the Association Between the Self-hosted Maven Repo and Project
- Do not configure POM: The dependency package is not released to the self-hosted repo.
- Configure all POMs: If you run the mvn deploy command, the dependency package is released to the specified release repository and snapshot repository.
After the self-hosted Maven repo is associated with a project, you can select the repository in the build step of the build task in the project.
- Access the self-hosted repo homepage. In the left pane, click the name of a self-hosted Maven repo.
- Click Settings on the right of the page, and choose Project Associations.
- In the Operation column of the target project in the self-hosted Maven repo, click .
- In the displayed dialog box, select the repository name, and click OK.
After an "Operation successful" message is displayed, the value of Associated Repositories for the project will be updated according to the number of selected repositories.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.