Creating a Self-hosted Repo
If you use this service for the first time, you need to create a repo. Only tenant administrators have the permission to create self-hosted repos.
- Follow instructions in Accessing Through the Homepage to access the self-hosted repo. You can click Create Self-hosted Repo in the upper left corner of the page.
- Follow instructions in Accessing Through a Specific Project to access the self-hosted repo. You can click in the upper left corner of the page.
- The Create Self-hosted Repo page is displayed.
- Configure basic information and click OK.
Configuration Item
Required
Description
Name
Yes
Enter up to 20 characters: letters, numbers, underscores (_), hyphens (-), and periods (.).
NOTE:After a self-hosted repo is created, the repository name cannot be changed.
Package Type
Yes
: supports Maven, npm, Go, PyPI, RPM, Debian, Conan, and NuGet artifact repositories.
Complete the configuration for the selected format by following instructions in Configuring Repository Items.
Project
Yes
Select a project for the created repository. After the setting is complete, the project to which the user belongs cannot be changed.
Description
No
Enter up to 200 characters.
- View the name of the created self-hosted repo displayed in the list on the left of the page. Click the repository name to view the repository details. The repository details are displayed on the General, Resources, and Operation Logs tab pages.
- General: displays the repository name, repository type, repository path, relative path, creator, creation time, modifier, modification time, artifact count, and artifact size.
- Resources: collects statistics on artifacts uploaded to the repository by File Counts and Storage Capacity (Byte).
- Operation Logs: displays the operation history of uploading, deleting, and restoring data from the recycle bin in the repository.
Configuring Repository Items
The following table describes the configuration items specific to each type of repository.
Type |
Configuration Item |
Required |
Description |
---|---|---|---|
Maven |
Storage repositories |
Yes |
The options are Release and Snapshot. You are advised to select both. If so, two repositories will be generated: Release and Snapshot. If you select one, a Release or Snapshot repository will be generated. |
Include patterns |
No |
Enter the required path, and click +. During package builds, only the Maven files whose path starts with this path can be uploaded to the self-hosted repo. |
|
npm |
Include patterns |
No |
Enter the required path, and click +. During package builds, only the npm files whose path starts with this path can be uploaded to the self-hosted repo. |
Go |
Include patterns |
No |
Enter the required path, and click +. During package builds, only the Go files whose path starts with this path can be uploaded to the self-hosted repo. |
PyPI |
Include patterns |
No |
Enter the required path, and click +. During package builds, only the PyPI dependency packages in which the name value in the setup.py file matches this path can be uploaded to the self-hosted repo. |
RPM |
Include patterns |
No |
Enter the required path, and click +. During package builds, only the RPM binary files whose path starts with this path can be uploaded to the self-hosted repo. |
Conan |
Include patterns |
No |
Enter the required path, and click +. Only the Conan files whose path starts with this path can be uploaded from a local client to the self-hosted repo. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.