Updated on 2026-08-10 GMT+08:00

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

Procedure

  1. Use your Huawei Cloud account to access self-hosted repos.
  2. Select the created proxy repository from the repository list.
  3. Click Settings on the right of the repository.
  4. 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.

  5. Click Submit to save the configurations.

    Changes take effect immediately.