Updated on 2026-01-08 GMT+08:00

Using Bazel for Build

In this action, you build a project with Bazel.

Graphical Build

Add Build with Bazel, when configuring build actions.

The parameters are described in the following table.

Parameter

Description

Action Name

Name of a build action. It can be customized.

Tool Version

Select a tool version.

Commands

Configure Bazel commands. You can also use default commands. If you have special build requirements, enter your custom build script in the text box.

Code-based Build

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - bazel: 
        inputs: 
          command: |
              cd java-maven
              bazel build //:java-maven_deploy.jar
              mkdir build_out
              cp -r  bazel-bin/*  build_out/

Parameter

Type

Description

Mandatory

Default Value

command

string

Commands to be run.

Yes

None