Updated on 2024-10-14 GMT+08:00

Creating an Application with a Blank Template

Prerequisites

CodeArts Deploy supports deployment on hosts, containers, microservices, and functions. This section describes how to create and maintain an application.

Creating an Application

  1. Go to the CodeArts homepage and click the target project name to access the project.
  2. Choose CICD > Deploy.
  3. Click Create Application. On the Set Basic Information page that is displayed, modify the basic information such as Name, Execution Host, and Description, as required. For details, see Editing the Basic Information.
  4. After editing the basic application information, click Next. On the deployment template selection page that is displayed, select Blank Template and click OK.

    The Deployment Actions page is displayed. The left pane is the action orchestration area, and the right pane is the list of actions.

  5. On the right list, click Add of the target action to add the action to the orchestration area.
  6. (Optional) Configure application information.

    1. Click above or below an added action. All actions that can be added are displayed in the right pane. You can add an action before or after the current action.
      • You can drag, add, and delete actions in the action orchestration area.
      • You can click Save as Custom Template to save the current application as a custom template, which will be displayed under Templates > Custom Templates.
    2. After adding an action, configure the action information. For details, see Configuring Deployment Actions for an CodeArts Deploy Application.
    3. After the action information is configured, switch to the Basic Information tab page and click Edit to edit basic information as required. For details, see Editing the Basic Information.

      Only specific users at the Mexico site can edit Execution Host.

    4. Switch to the Parameters tab page, and create custom parameters as required. For details, see Editing Parameters.
    5. Switch to the Environment Management tab page, and create and manage environments as required. For details, see Configuring an Environment.
    6. Switch to the Permissions tab page and configure role permissions as required. For details, see Configuring Permissions for Different Roles.

    7. Switch to the NotificationsNotifications tab page to notify users of application events they favorited through emails. For details, see Configuring Notifications for Third-Party Applications.

  7. After configuring all information, click Save.

Editing Basic Information

  1. Select the target application, click , and click Edit. The Deployment Actions page is displayed.
  2. Click Basic Information. You can edit Name, Execution Host, and Description as required.

    Table 1 Parameters

    Parameter

    Description

    Name

    Mandatory. Name of an application.

    Project

    Retain the default value. Project to which an application belongs. If your account does not have a project, click Create Project and click Scrum to create one.

    Description

    Optional. Description of an application.

    Execution Host

    Optional. A resource pool is a collection of physical environments where commands are executed during software package deployment. You can use an official resource pool hosted by Huawei Cloud or host your own servers as a self-hosted resource pool on Huawei Cloud. For details about hosting your own servers, see Self-hosted Resource Pool.

    Deploy from Pipeline

    Optional. Toggling on the switch indicates that this application can run only in a pipeline. It cannot run independently.

    Only specific users at the Mexico site can edit Execution Host.

    Note: If the tenant account has enabled Intranet Secure Access (only for whitelisted users), the self-hosted resource pool is selected by default and cannot be changed.

  3. After modifying all information, click Save.

Managing Groups

Users can manage applications of the same features by sorting applications to user-defined groups based on functions or organizations. For example, applications can be classified into multiple categories based on functions and features, such as purchase group, order group, and user management group.

By default, only the project creator, project admin, project manager, system engineer, committer and developer have the group management permissions. The project creator and project manager can assign the group management permission to other roles.

  1. Go to the CodeArts homepage and click the target project name to access the project.
  2. Choose CICD > Deploy.
  3. Move the cursor to All Groups. The icon is displayed. Click to expand the deployment group panel.
  4. Click . The Manage Groups dialog box is displayed.
  5. Move the cursor to the row where All Groups is located and click .
  6. Enter the group name. Click to create the group or click to cancel.

    After the group is created, you can perform the following operations:
    • Click in the row where the group is located to create a subgroup. You can create a maximum of three levels of subgroups.
    • Click in the row where the group is located to change the group name.
    • Click in the row where the group is located to move or delete the group.

    After the first group is created, an Ungrouped group is automatically generated. New applications and ungrouped applications are automatically added to the Ungrouped group. If no group is selected when creating an application, the newly created and ungrouped applications are automatically added to Ungrouped.

  7. After groups are created, click Close to return to the application list page. You can move applications to the corresponding groups as required.

    1. Select the applications to be grouped. The following dialog box is displayed at the bottom of the page.

    2. Click Move To. The Move Group dialog box is displayed. You can move the application to the corresponding group.

Favoriting an Application

If there are many applications in the application list, you can favorite an application to pin it on the top of the application list. If you favorite multiple applications, the applications are displayed on the top from newest to oldest based on the time when they are followed.

On the Applications page, click next to the target application to favorite it.

Cloning an Application

You can clone an application without affecting the original application.

On the Applications page, click next to the target application and click Clone. The Deployment Actions page is displayed. Click Basic Information to change the application name and click Save.

Deleting an Application

You can delete an application that is no longer needed.

On the Applications page, click next to the target application and click Delete. In the displayed dialog box, enter the application name and click Yes.

Note that the application cannot be restored after being deleted.

Batch Deleting Applications

You can delete applications if you do not need them anymore.

On the Applications page, click Delete on the bottom of the page. In the displayed dialog box, enter Yes and click Yes.

Note that the application cannot be restored after being deleted.

Disabling an application

Select the application to be disabled, click the icon, and click Disable.

After an application is disabled, the application cannot be edited, deployed, or rolled back. Creating or editing environment is not allowed and environment permissions cannot be modified.