# Build artifacts from source code

> Build artifacts from source code - Configure, trigger, and troubleshoot builds that turn your source
> code into a container image.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-09-30T19:40:40.962413+00:00` (UTC).

## Primary page

- [Build artifacts from source code](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/build-from-code/index.html.md): Full documentation for this topic (Markdown sidecar).

## Related documentation

- [Workload API](https://docs.datarobot.com/en/docs/workload-api/index.html.md): Linked from this page.
- [Build artifacts](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/index.html.md): Linked from this page.
- [Build an image from source code](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/build-from-code/build-from-code.html.md): Linked from this page.
- [Trigger and manage builds](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/build-from-code/build-operations.html.md): Linked from this page.
- [Build logs](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/build-from-code/build-logs.html.md): Linked from this page.
- [Tutorial: Build a Workload from source](https://docs.datarobot.com/en/docs/workload-api/build-artifacts/build-from-code/tutorial-build-from-code.html.md): Linked from this page.

## Documentation content

> [!NOTE] Premium feature
> The Workload API is a premium feature. Contact your DataRobot representative or administrator for information on enabling the feature.

An artifact can reference a container image you already built ( `imageUri`), or it can build one from your source code by setting `imageBuildConfig` on a container instead—often called code to Workload —so the same platform-managed process produces every image, with no local `docker build` or registry push in between. This section covers that path end to end: pointing an artifact at your code, triggering and tracking the build, reading its logs, and a full worked example.

> [!NOTE] Applies only to artifacts built from source
> Every page in this section assumes an artifact with `imageBuildConfig` and a `codeRef`. If your artifact references a pre-built image with `imageUri`, there's nothing here to configure or troubleshoot.

| Resource | Description |
| --- | --- |
| Build an image from source code | Point an artifact at your code with codeRef, and choose a provided or generated Dockerfile. |
| Trigger and manage builds | Start builds, track status, cancel, and interpret build errors. |
| Build logs | Retrieve build output and diagnose a failed build. |
| Tutorial: Build a Workload from source | End-to-end walkthrough from a local project to a running endpoint. |
