Help Center/ Ubiquitous Cloud Native Service/ User Guide/ Pipeline/ Creating a Release Environment
Updated on 2024-02-01 GMT+08:00

Creating a Release Environment

This section describes how to create a code repository for an application and configure the environment and associated UCS cluster fleets.

Creating a Code Repository

  1. On the Scrum project homepage, search for the Scrum project created in Creating a Scrum Project, and click the project name to access the project.
  2. In the navigation pane on the left, choose Code > Repo, and click New Repository.

    Figure 1 Creating a common repository

  3. Configure the repository name, permissions, and visibility. For details, see Figure 2.

    Figure 2 Configuring the code repository

Creating an Environment

  1. In the navigation pane on the left, choose CICD > Release, and click Environment. On the displayed page, you can view all environments.

    Figure 3 Viewing the environments

  2. Click Create Environment and configure basic information. For details about the parameters, see Table 1.

    • If you set the current user as the publish user, you can directly obtain the UCS fleet information of the account.
    • If you set other users as the publish users, you can obtain the UCS fleet information of the account through the IAM service endpoint configured in Creating a Project and Service Endpoint.
    Figure 4 Setting the current user as the publish user
    Figure 5 Setting other users as the publish users
    Table 1 Parameters for creating an environment

    Parameter

    Description

    Environment Name

    Unique ID of an environment. Once created, this parameter cannot be changed.

    Resource Type

    Multiple types of resources that support different deployment plug-ins.

    Publish User

    The current user or other users to obtain the fleet information of the account to release applications.

    Service Endpoint

    Endpoint to obtain UCS resource permissions. For details about how to create a service endpoint, see How Do I Obtain an Access Key (AK/SK)?.

    Association Type

    Associated UCS resource granularity. Currently, only container fleets are supported.

    Fleets

    Cluster fleets for which cluster federation is enabled in the UCS.

    Environment Level

    Environment types. There are four environment types: development, test, pre-production, and production.

    Description

    Description of the environment. This parameter is optional.

  3. Click OK. The environment details page is displayed.