Updated on 2025-08-15 GMT+08:00

Creating an Agent Pool

Scenario

You can use built-in or custom executors to perform check, build, deployment, pipeline, and API test tasks in CodeArts.

Agent pools are used to connect custom executors. You can add your own execution resources to an agent pool so that you can use them to execute tasks. Agent pools help improve efficiency and remove dependency on public execution resources.

Creating an Agent Pool

  1. Go to the CodeArts homepage.

    1. Log in to the CodeArts console, click , and select a region where you have enabled CodeArts.
    2. Click Go to Workspace.

      If your account uses the old billing mode (see Old Billing Modes), click Access Service.

  2. Click the username on the top navigation bar and choose All Account Settings.
  3. Choose Agent Management > Agent Pool.
  4. Click Create Pool, configure the agent pool, and click Save.

    Table 1 Creating an agent pool

    Parameter

    Description

    Pool Name

    The name of the agent pool. Enter a maximum of 50 characters. Digits, letters, periods (.), underscores (_), and hyphens (-) are supported.

    Pool Type

    Supported pool types:

    • LINUX: Tasks are executed on a Linux VM.
    • LINUX_DOCKER: A Linux Docker container is started and tasks are executed in the container.
    • WINDOWS: Tasks are executed on a Windows VM.
    • MAC: Tasks are executed on a macOS VM.

    Description

    Describe the agent pool. Enter a maximum of 1,024 characters.

    This parameter is optional. Configure it as needed.

    This pool can be used by all users of the current account.

    This parameter is optional. Enable it as needed. If this parameter is selected, all users of the current account can use the pool.

    A new record is displayed in the list.

    Figure 1 Agent pool list

Managing an Agent Pool

  1. Go to the CodeArts homepage.

    1. Log in to the CodeArts console, click , and select a region where you have enabled CodeArts.
    2. Click Go to Workspace.

      If your account uses the old billing mode (see Old Billing Modes), click Access Service.

  2. Click the username on the top navigation bar and choose All Account Settings.
  3. Choose Agent Management > Agent Pool.
  4. Locate the agent pool you want to manage, and perform the operations listed in the table below as needed.

    Table 2 Managing an agent pool

    Operation

    Description

    Modifying agent pool basic information

    Click in the Operation column. In the displayed dialog box, modify the pool name and description, and click Save.

    The modified agent pool information is displayed in the list.

    Setting pool administrators

    1. Click in the Operation column. The Permissions tab is displayed.
    2. Set administrators as needed.
      • Click Add next to Administrators, select users from the drop-down list, and click .
      • To remove the administrator role of a user, click next to the username.

      The modified administrators are displayed.

      Figure 2 Setting administrators

    Setting pool users

    1. Click in the Operation column. The Permissions tab is displayed.
    2. Set users as needed.
      • Click the switch to set all users in your account as users of the agent pool.
      • Click Add next to Projects, select a project name from the drop-down list box, and click to set all members in the selected project as agent pool users.
      • To cancel the authorization for members in a project, click next to the project name.

      The modified information is displayed.

      Figure 3 Setting pool users

    Deleting the agent pool

    WARNING:

    The deletion cannot be undone. Exercise caution when performing this operation.

    Click in the Operation column. In the displayed dialog box, click Yes.

    The deleted agent pool is no longer displayed in the list.

    Setting notification rules

    1. In the agent pool list, click the name of the target pool to go to the agent list page.
    2. Click the Notifications tab. Enable or disable notifications for the following event types:
      • Create agent
      • Delete agent
      • Disable agent
      • Enable agent
      • Bring agent offline
      • Bring agent online

      The modified notification rules are displayed.