Updated on 2023-12-21 GMT+08:00

Introduction

CodeArts Build provides graphical build and code-based build.

Graphical Build

CodeArts Build provides various build actions and allows you to orchestrate them as required. If the preset build tool version cannot meet your requirements, customize a build environment and package it into a Docker image. Push the image to SoftWare Repository for Container (SWR) for future use. For details, see Creating Images and Pushing to SWR and Using SWR Public Images.

Code-based Build

Code-based build only uses Repo as the code source.

You can use YAML files to configure build scripts. To be specific, you can use YAML syntax to write a build.yml file based on the build environment, parameters, commands, and actions required during the build process. You can also add the build.yml file to a code repository together with the built code. The system uses the build.yml file as the build script to execute the build task, making the build process traceable, recoverable, secure, and reliable. Code-based build has the following advantages:

  • The script file clearly describes the build process, including build parameters, commands, steps, and post-build operations, to make the build process trustworthy.
  • The build.yml configuration corresponding to the current commit is used for each build to ensure that the build can be restored and traced. You do not need to worry that the previous task cannot be executed repeatedly due to build configuration modification.
  • If the build script needs to be modified for a new feature, you can create a branch to modify the build.yml file for testing without worrying about affecting other branches.

This build method supports the configuration of a single task or multiple tasks.