---
title: "Get the attributes of an sbt build."
method: GET
path: "/api/builds/{id}/sbt-attributes"
tags: ["Builds", "Develocity"]
---

# Get the attributes of an sbt build.

`GET /api/builds/{id}/sbt-attributes`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/sbt-attributes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/sbt-attributes/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is sbt specific and cannot be requested for another build tool.

## Response `200`

The attributes of an sbt build.

- SbtAttributes: The attributes of an sbt build.
  - `id` string, required: The Build Scan ID.
  - `buildStartTime` integer, required: The time when the build starts, as milliseconds since Epoch.
  - `buildDuration` integer, required: The duration of the build, as milliseconds.
  - `sbtVersion` string, required: The sbt version used.
  - `pluginVersion` string, required: The Develocity sbt plugin version used.
  - `rootProjectName` string, required: The name of the root project, as reported by sbt.
  - `requestedCommands` string[], required: The list of requested commands.
  - `hasFailed` boolean, required: True when the build fails, false otherwise.
  - `hasVerificationFailure` boolean: Set only if the build fails: true when the build has at least one failure classified as "Verification", false otherwise. The Verification classification is meant for failures that are expected within a standard application development lifecycle. They typically represent a problem with the developer’s inputs to the build such as the source code.
  - `hasNonVerificationFailure` boolean: Set only if the build fails: true when the build has at least one failure classified as "Non-verification", false otherwise. The Non-verification classification is meant for failures that are typically not expected within a standard application development lifecycle, such as build configuration failures, dependency resolution failures, and infrastructure failures.
  - `tags` string[], required: The list of Build Scan tags.
  - `values` BuildAttributesValue[], required: The list of Build Scan values.
    - `name` string, required: The name of the Build Scan value.
    - `value` string: The value of the Build Scan value. `null` if the Build Scan value is not set.
  - `links` BuildAttributesLink[], required: The list of Build Scan links.
    - `label` string, required: The label of the Build Scan link.
    - `url` string, required: The url of the Build Scan link.
  - `develocitySettings` SbtDevelocitySettings, required: Settings for Develocity.
    - `backgroundPublicationEnabled` boolean, required: Indicates whether background Build Scan publication is enabled for the build. See https://gradle.com/help/sbt-plugin-switches-background-build-scan-publication.
    - `buildOutputCapturingEnabled` boolean, nullable: Indicates whether to capture build logging output for the build. `null` if Develocity sbt plugin version is < `1.0`. See https://gradle.com/help/sbt-plugin-capturing-build-output.
    - `resourceUsageCapturingEnabled` boolean, nullable: Indicates whether resource usage capturing is enabled for the build. `null` if Develocity sbt plugin version is < `1.1`. See https://gradle.com/help/sbt-plugin-capturing-resource-usage.
  - `buildOptions` SbtBuildOptions, required: sbt build options for this build.
    - `useCoursierEnabled` boolean, required: Indicates whether Coursier was used for dependency resolution.
    - `offlineModeEnabled` boolean, required: Indicates whether the build was configured to run offline.
    - `turboEnabled` boolean, required: Indicates whether the build was configured to use turbo mode.
    - `parallelExecutionEnabled` boolean, required: Indicates whether the build was configured to use parallel tasks execution.
    - `semanticDbScalacPluginEnabled` boolean, required: Indicates whether the projects in the build were configured to use the SemanticDB Scalac plugin.
    - `interactiveModeEnabled` boolean, required: Indicates whether the build was run from the sbt shell.
  - `environment` BuildAttributesEnvironment, required: The environment where the build is executed.
    - `username` string, nullable: Operating system username of the build user. `null` if no username is captured.
    - `operatingSystem` string, required: Operating system of the build machine.
    - `numberOfCpuCores` integer, required: Number of cores available to the build JVM.
    - `jreVersion` string, required: Version of the Java runtime executing the build.
    - `jvmVersion` string, required: Version of the Java Virtual Machine executing the build.
    - `jvmMaxMemoryHeapSize` integer, required: Maximum heap memory available to the build JVM in bytes.
    - `jvmCharset` string, nullable: The default charset of the JVM executing the build. `null` if capturing is not possible.
    - `jvmLocale` string, required: The locale of the JVM executing the build.
    - `publicHostname` string, nullable: The hostname of the build machine, as seen on the network. `null` if capturing is not possible.
    - `localHostname` string, nullable: The hostname of the build machine, as specified by itself. `null` if capturing is not possible.
    - `localIpAddresses` string[], nullable: The local IP addresses of the build machine. `null` if capturing is not possible.

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
