Skip to content

Build Info for Bazel Builds #826

@jamuall

Description

@jamuall

Is your feature request related to a problem? Please describe.
Currently, JFrog Build-Info supports multiple build tools such as Maven, Gradle, npm, and others, but there is no native support for Bazel.
Since Bazel is widely used in large-scale and monorepo environments, it would be very helpful to have first-class support for generating and publishing build-info metadata from Bazel builds to Artifactory.

Current situation
In our monorepo, we use the build-info tool with Maven (mvn) to generate and publish build-info. However, this approach introduces significant overhead—our pipeline builds take more than 20 minutes per run when using Maven.
If build-info generation were supported natively for Bazel, we could avoid this workaround, significantly improve build times, and better align with our actual build system.

Describe the solution you'd like to see
The build-info tool should support Bazel directly.

  1. Provide a bi bazel command that builds with Bazel and generates build-info.

  2. Capture relevant Bazel build information (dependencies, outputs, environment variables, etc.).

  3. Publish the results as a build-info.json file to the target directory.

Describe alternatives you've considered
Bazel already provides build-info–related tooling in its source code, which could potentially be integrated into the build-info tool:

https://github.com/bazelbuild/bazel/tree/master/tools/build_defs/build_info

Additional context
Bazel already produces rich build metadata (dependency graphs, action logs) that could be leveraged for build-info.

This feature would remove the need for Maven-based workarounds and make build-info much more efficient for Bazel users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions