Skip to main content

BuildResult

The result of building in bxl.

BuildResult.artifacts

def BuildResult.artifacts() -> None | bxl_built_artifacts_iterable

Returns an optional iterable of artifacts that was successfully built.

Sample usage:

def _impl(ctx):
    outputs = {}
    for target, value in ctx.build(ctx.cli_args.target).items():
        ctx.output.print(value.artifacts())

BuildResult.failures

def BuildResult.failures() -> None | bxl_failed_artifacts_iterable

Returns an optional of iterable of artifacts that failed to be built.

Sample usage:

def _impl(ctx):
    outputs = {}
    for target, value in ctx.build(ctx.cli_args.target).items():
        ctx.output.print(value.failures())