Help Center> CodeArts Pipeline> User Guide> Pipeline Management> Creating or Copying a Pipeline
Updated on 2023-11-28 GMT+08:00

Creating or Copying a Pipeline

Procedure

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

    On the Basic Information page, select a project, enter the pipeline name, select a pipeline source, and configure related parameters. Table 1 describes the pipeline source and related parameters.

    Table 1 Parameter description

    Pipeline 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

    Default branch used when a pipeline is manually or periodically executed.

    CodeArts Repo HTTPS Authorization

    Configure authorization endpoints to elevate repository operation permissions. This function is used for microservice change pipelines and some repository operation extensions.

    Alias

    If an alias is specified, predefined parameters are generated for the repository and displayed on the Parameter Configuration tab page.

    If a repository alias is configured when a user selects Repo as the pipeline source, the system-predefined parameter corresponding to the repository is generated on the Predefined Parameters tab page. Otherwise, the system-predefined parameter is not generated.

    Description

    Description of the pipeline.

    Git

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

    Service Endpoints

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

    Repository

    Select an available source code repository.

    Default Branch

    Default branch used when a pipeline is manually or periodically executed.

    Description

    Description of the pipeline.

    • If a pipeline task does not need to be associated with a code repository, select None for Pipeline Source.

  3. Configure the information and click Next.

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

  4. Select a template and 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 Copy.
    • Click the name of the target pipeline, on the Execution History page that is displayed, click in the upper right corner and click Copy.
    • Click the name of the target pipeline, then click the Pipeline Details tab or click the execution ID to go to the Pipeline Details page. Click in the upper right corner and click Copy.

    On the pipeline copy page, you can add configurations based on the original pipeline as required. For details, see Configuring a Pipeline.