Creating a Self-Hosted Repo
Only tenant accounts have permissions to create self-hosted repos.
Procedure
- Log in to the DevCloud homepage and access the self-hosted repo homepage.
- Click Create.
- Configure basic information and click OK.
Configuration Item
Mandatory
Description
Name
Yes
Enter up to 20 characters: letters, numbers, underscores (_), hyphens (-), and periods (.).
Type
Yes
The repository is hosted. The default value is hosted and does not need to be changed.
Format
Yes
Maven, NPM, Go, PyPI, RPM artifact repositories are supported.
Complete the configuration for the selected format by following instructions in Repository Configuration Items.
Description
No
Enter up to 200 characters.
Repository Configuration Items
The following table describes the configuration items specific to each format of repository.
Format |
Configuration Item |
Mandatory |
Description |
---|---|---|---|
Maven |
Version Policy |
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. |
npm |
Paths |
Yes |
Enter the value of scope. Scopes are a way of grouping related npm packages together. There is a many-to-one relationship between scopes and private npm repositories. One private npm repository can contain multiple scopes, but a scope can point to only one private npm repository. For more information, see the official scope document. During package building, the components associated with the specified scope can be downloaded from or uploaded to the corresponding private artifact repository. For example, if you enter test for Paths, only the npm components whose name starting with test can be uploaded to the self-hosted repo. |
Go |
Paths |
No |
Enter the required path, and click +. During package building, only the Go file whose path starts with this path can be uploaded to the private artifact repository. |
PyPI |
Paths |
No |
Enter the required path, and click +. During package building, only the PyPI dependency package in which the name value in the setup.py file matches this path can be uploaded to the private artifact repository. |
RPM |
Paths |
No |
Enter the required path, and click +. During package building, only the RPM binary file whose path starts with this path can be uploaded to the private artifact repository. |
Feedback
Was this page helpful?
Provide feedbackFor any further questions, feel free to contact us through the chatbot.
Chatbot