Help Center> CodeArts Pipeline> User Guide> Pipelines> Creating or Cloning a Pipeline
Updated on 2024-06-27 GMT+08:00

Creating or Cloning a Pipeline

Procedure

  1. Log in to CodeArts Pipeline.
  2. On the Pipelines tab page, click Create Pipeline.

    On the displayed page, enter a pipeline name, select a project, select a code source, and set other parameters. For details, see Table 1.

    Table 1 Parameter description

    Code Source

    Parameter

    Description

    Repo

    provides comprehensive code hosting services for enterprises and Git-based online code hosting services for software developers.

    Repository

    Select an available source code repository.

    Default Branch

    Branch used when a pipeline is executed manually or at a specified time.

    Repo Endpoint

    Configure endpoints to elevate permissions on repository operation. Endpoints are used for change-triggered pipelines and repository operation extensions.

    Alias

    Repository alias. If an alias is set, the system parameters are generated for the repository (you can view the parameters on the parameter configuration page).

    Description

    Description of the pipeline.

    GitLab

    Service Endpoint

    Select an available service endpoint or click Create one to create a GitLab service endpoint.

    Repository

    Select an available source code repository.

    Default Branch

    Branch used when a pipeline is executed manually or at a specified time.

    Description

    Description of the pipeline.

    Git

    The repository configured in the service endpoint can be accessed through the common Git service endpoint.

    Service Endpoint

    Select an existing Git service endpoint or click Create one to create a Git service endpoint.

    Repository

    Select an available source code repository.

    Default Branch

    Branch used when a pipeline is executed manually or at a specified time.

    Description

    Description of the pipeline.

    • If a pipeline does not need to be associated with a code repository, select None for pipeline source.
    • Currently, the GitLab pipeline source is available in LA-Mexico City2, LA-Sao Paulo1, and AP-Singapore.

  3. Click Next.

    On the Template page, select a template to quickly create a pipeline. You can also select Blank Template to directly create a pipeline from scratch.

  4. After selecting a template, click OK. On the Task Orchestration tab page, configure a pipeline and click Save.
  5. (Optional) Clone a pipeline in one of the following ways:

    • On the Pipelines tab page, search for the target pipeline, click in the Operation column, and click Clone.
    • Click the name of the target pipeline, on the displayed Execution History tab page, click in the upper right corner and click Clone.
    • Click the name of the target pipeline, then click the execution ID or the Pipeline Details tab. On the displayed page, click in the upper right corner and click Clone.

    On the displayed page, you can change configurations as needed. For details, see Configuring a Pipeline.