Configuring a Proxy Repository
After a local repository is created, you can go to Settings > Basic Information to configure basic information, the proxy address, and the username as needed.
Prerequisites
- You have created a CodeArts project.
- You have the editRepository permission. For details about how to add this permission, see Configuring Repository Permissions.
Procedure
- Use your Huawei Cloud account to access self-hosted repos.
- Select the created proxy repository from the repository list.
- Click Settings on the right of the repository.
- Configure the proxy repository parameters by referring to Table 1.
Table 1 Proxy repository configuration parameters Category
Item
Description
Basic information
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.
- If you select Project, the created repository belongs to the associated project. Repositories in a project use roles in the project for authentication. For details about repository permissions by role in a project, see Configuring Project-Level Permissions.
- If you select Tenant, the created repository will belong to the tenant associated with it. Repositories within a tenant use tenant space role authentication. For details about repository permissions by role in a tenant, see Configuring Repository-Level Permissions.
Description
Enter up to 200 characters to describe the repository, such as its purpose or usage.
Proxy repository configuration
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.
Username
If the proxy repository requires authentication, enter the proxy repository username.
Password
If the proxy repository requires authentication, enter the proxy repository password.
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
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.
- Click Submit to save the configurations.
Changes take effect immediately.
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