Help Center> CodeArts Pipeline> Getting Started> Getting Started with CodeArts Pipeline
Updated on 2023-11-01 GMT+08:00

Getting Started with CodeArts Pipeline

This document describes how to create a pipeline, including the preparations and basic procedure. You can use the pipeline after performing routine operation settings.

Preparations

  • Create a project
    1. Log in to the CodeArts home page and click Create Project.
    2. Select a Scrum project template, enter information such as the project name, and click OK.

    For details, see Creating a Scrum Project.

  • Create a code repository
    1. Click the created project, and choose Code > Repo.
    2. Click the drop-down button next to New Repository, select Template Repository, and select the Java Maven Demo template.
    3. Click Next, enter basic information such as the repository name, and click OK.

    For details, see Creating a Repository Using a Template.

  • Create a build task
    1. Go to the created project and choose CICD > Build.
    2. Click Create Task and perform the following operations as prompted:
      1. On the Set Basic Information page, select the created code repository, select the default branch master, and click Next.
      2. On the Build Template page, select the system template Maven, click Next, and retain the default configurations on the displayed Build Actions tab page.
    3. Click Create to complete the creation.

    For details, see Creating a Build Task.

  • Create a code check task
    1. Click the created project, and choose Code > Check.
    2. Click Create Task, select a code source, search for the target repository, and click Create next to the repository.
    3. After the creation is complete, go to the details page and modify the task name as required.

    For details, see Creating a Task to Check Code from CodeArts Repo.

Procedure

  1. Go to the created project and choose CICD > Pipeline.
  2. On the CodeArts Pipeline homepage displayed, click Create Pipeline.

    On the displayed page, enter a pipeline name, select a pipeline source and template (a blank template is used as an example), and click OK.

    Alternatively, click Create Pipeline on the CodeArts Pipeline homepage, select a pipeline source and project.

  3. On the Task Orchestration tab page, add the created code check task in the build stage.

      

    Add the created build task.

  4. Click under a stage. In the dialog box displayed, move the cursor to different pass condition cards and click Add to add a pass condition for the current stage and configure a policy for the condition.

      

  5. After the configuration is complete, click Save and Run. In the displayed dialog box, select the branch or tag of the pipeline source, configure parameters, select the execution stage, and click Run.
  6. View the execution result.

    • Click Download next to Output to download the build package automatically built using the pipeline.
    • Click a task card to view the task log.