Creating a Proxy Repository
During software development, teams often need to download dependencies from open-source communities or third-party repositories. However, downloading dependencies directly from these sources may cause network instability and slow download speeds. CodeArts Artifact allows you to create proxy repositories for open-source and third-party dependency repositories. Files downloaded from proxy repositories are cached in CodeArts Artifact. This improves the download speed and stability of dependencies.
Constraints
This repository type is supported only at region AP-Singapore.
Prerequisites
- You have created a CodeArts project.
- You have the createRepository permission. For details about how to add this permission, see Configuring Repository Permissions.
Procedure
- Use your Huawei Cloud account to access self-hosted repos.
- Click New Repository, as shown in the following figure.

- On the displayed page, set Repository Type to Proxy Repo. Select the package type for your repository, for example, Maven, npm, or PyPI.
- Configure the basic information, as described in the following table.
Table 1 Parameters Item
Description
Repository Name
You can enter a unique repository name. Enter up to 50 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are supported.
WARNING:After a repository is created, its repository name cannot be changed.
Proxy Address
Address of the repository that requires proxy.
Common proxy repositories include mirrors, public repositories, and third-party repositories. When a resource is requested, CodeArts Artifact pulls the resource from the proxy repository.
PyPI Index Proxy Address
This parameter is available only when Package Type is set to PyPI.
It refers to the index site for Python software packages, also known as the python package index (PyPI).
Example: https://mirrors.tools.****.com/pypi
Username
If the proxy repository requires authentication, enter the proxy repository username.
Password
If the proxy repository requires authentication, enter the proxy repository password.
Net Proxy Name
If a network proxy is required to connect to CodeArts Artifact, select the proxy to use.
Select the proxy from the drop-down list. For details, see Configuring a Network Proxy.
Project
The project to which the current repository belongs. If no project exists, click New Project in the drop-down list to create one.
WARNING:After the repository is created, its name and project cannot be changed.
Associated Projects
This parameter is available only when Package Type is set to Maven.
This parameter is used to share artifacts in CodeArts Build. By default, CodeArts Build pulls artifacts only from repositories in the current project. You can configure associated projects to share artifacts across projects. After the target repository is associated with the project where the build task is located, build tasks in that project can pull artifacts from the repository.
Include Patterns
Specify the files to include in the operation. These patterns are usually used to filter in and select specific files or folders. If you configure this parameter, only artifacts that match the added path prefix can be operated on (including artifact uploads and downloads).
You can click + to add multiple inclusion rules. The relationship between multiple inclusion rules is OR.
Exclude Patterns
Specify the files to exclude from the operation. These patterns are usually used to filter out and select specific files or folders. If you configure this parameter, artifacts that match the added path prefix cannot be operated on (including artifact uploads and downloads).
You can click + to add multiple exclusion rules. The relationship between multiple exclusion rules is OR.
Open To
Set the repository permission scope.
Description
Enter up to 200 characters to describe the repository, such as its purpose or usage.
- Confirm the configurations and click OK.
After the repository is created, you can view it in the repository list.
What is your overall rating for this page?
Thank 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