Quick start

更新时间:
复制 MD 格式

This topic describes how to quickly use the cloud build service from the console.

Workflow

The workflow for using the cloud build service is as follows.image

Prerequisites

  • You have registered for and logged in to an Alibaba Cloud account, and completed identity verification. For more information, see Account Management.

  • You have activated the EMAS service. For more information, see Quick Start.

Limits

  • Each account can run a maximum of three pipeline instances concurrently. Additional instances are queued.

Procedure

  1. Add a project and an application. For more information, see Quick Start.

  2. Configure the application. Before you use the cloud build service to build or publish an application, you must configure the development environment. This process includes adding code repository permissions, configuring certificates, adding personnel, and configuring code scanning rules.

    Operation

    Description

    Configure a code repository

    Add permissions to a code repository. This lets you associate and manage the repository for your application. You can then use the source code in the repository to build and publish your application.

    Configure a certificate (Android)

    Upload and manage the certificates that your application uses.

    Configure personnel

    Add and manage application administrators.

    Configure code scanning rules (update required)

    Configure and manage code scanning rules.

  3. (Optional) Create a pipeline. After the application is configured, the system automatically creates a default build pipeline.

    Operation

    Description

    Create a pipeline

    Create new pipelines for build packages and deployment packages.

    Clone a pipeline

    Clone an existing build pipeline and its configuration to create a new one.

  4. Configure the pipeline. Configure the default pipeline or a pipeline that you created.

    Operation

    Description

    Configure a source code trigger

    Set the trigger method to source code trigger in the trigger stage.

    Configure an API trigger

    Set the trigger method to API trigger in the trigger stage.

    Customize the build application stage

    Configure build tasks in the build application stage.

    Configure DingTalk group notifications

    Configure DingTalk group notifications in the pipeline run result notification stage.

    Configure a webhook for the code repository

    Configure the cloud build webhook URL in the code repository.

    Customize a pipeline stage

    Add a custom stage to the pipeline template.

  5. Manage the pipeline. Run the pipeline and view the build artifacts.

    Operation

    Description

    Run the pipeline

    Run the configured pipeline.

    Important

    Each account can run a maximum of three pipeline instances at the same time. Additional instances are queued.

    View build logs

    View the build logs after the pipeline runs.

    Download build artifacts

    Download the build artifacts after the pipeline runs.

    Delete the pipeline

    Delete pipelines that are no longer in use.

    Important

    This operation also deletes the execution history and build artifacts of the pipeline. This action cannot be undone. Proceed with caution.

View the application overview

On the Overview tab for an application, you can view its basic information. You can also check the Build Success Rate and Number of Builds for a specific time range.

Technical support

The cloud build service provides technical support through a DingTalk group. For more information, see Contact us.