Updated on 2025-08-13 GMT+08:00

Build

Call the Build extension to use CodeArts Build capabilities.

Adding the Extension with GUI

Add the Build extension when you orchestrate a pipeline. Set parameters as shown in Table 1.

Table 1 Parameter description

Parameter

Description

Name

Extension name, which can be customized.

  • Enter only letters, digits, hyphens (-), underscores (_), commas (,), semicolons (;), colons (:), periods (.), slashes (/), parentheses (), and spaces.
  • Enter 1 to 128 characters.

Select Task

Select a build task whose code source is pipeline or the same repository as the pipeline you are configuring.

Repository

Select the corresponding code repository.

Artifact Identifier

Identifier of each build artifact. For example, if the ID of the build task is "build_job" and the artifact identifier is "demo", use "${{jobs.build_job.artifacts.demo}}" to obtain artifact information in subsequent tasks.

Adding the Extension with YAML

Add the Build extension when you orchestrate a pipeline. Configure the YAML syntax as follows:

  • Build

    Call the Build extension to use CodeArts Build capabilities.

    uses: CodeArtsBuild
    with:
      jobId: 878b4d13cb284d9e8f33f988a902f57c
      artifactIdentifier: my_pkg
      customParam: value
    • jobId: ID of the build task. To obtain the ID, copy the 32 digits and letters at the end of the browser URL on the build task details page.
    • artifactIdentifier: Build artifact identifier.
    • customParam: Parameter value defined in the build task. There may be zero to multiple values.