BazelAttributes

data class BazelAttributes(@Json(name = "id") val id: String, @Json(name = "buildStartTime") val buildStartTime: Long, @Json(name = "buildDuration") val buildDuration: Long, @Json(name = "bazelVersion") val bazelVersion: String, @Json(name = "command") val command: String, @Json(name = "tags") val tags: List<String>, @Json(name = "values") val propertyValues: List<BuildAttributesValue>, @Json(name = "links") val links: List<BuildAttributesLink>, @Json(name = "hasFailed") val hasFailed: Boolean, @Json(name = "invocationId") val invocationId: String? = null, @Json(name = "targetPatterns") val targetPatterns: List<String>? = null, @Json(name = "exitCode") val exitCode: Int? = null, @Json(name = "user") val user: String? = null, @Json(name = "host") val host: String? = null, @Json(name = "moduleName") val moduleName: String? = null)

The attributes of a Bazel build.

Parameters

id

The Build Scan ID.

buildStartTime

The time when the build starts, as milliseconds since Epoch.

buildDuration

The duration of the build, as milliseconds.

bazelVersion

The Bazel version used.

command

The Bazel command used (e.g. build, test, run).

tags

The list of Build Scan tags.

propertyValues

The list of Build Scan values.

links

The list of Build Scan links.

hasFailed

True when the build fails, false otherwise.

invocationId

The Bazel-provided build invocation ID. Null when not known.

targetPatterns

The list of requested target patterns.

exitCode

The exit code of the Bazel process.

user

The BUILD_USER workspace value, if set.

host

The BUILD_HOST workspace value, if set.

moduleName

The name of the module, or workspace. null in case of very early build failure.

Constructors

Link copied to clipboard
constructor(@Json(name = "id") id: String, @Json(name = "buildStartTime") buildStartTime: Long, @Json(name = "buildDuration") buildDuration: Long, @Json(name = "bazelVersion") bazelVersion: String, @Json(name = "command") command: String, @Json(name = "tags") tags: List<String>, @Json(name = "values") propertyValues: List<BuildAttributesValue>, @Json(name = "links") links: List<BuildAttributesLink>, @Json(name = "hasFailed") hasFailed: Boolean, @Json(name = "invocationId") invocationId: String? = null, @Json(name = "targetPatterns") targetPatterns: List<String>? = null, @Json(name = "exitCode") exitCode: Int? = null, @Json(name = "user") user: String? = null, @Json(name = "host") host: String? = null, @Json(name = "moduleName") moduleName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val exitCode: Int? = null
Link copied to clipboard
Link copied to clipboard
val host: String? = null
Link copied to clipboard
val id: String
Link copied to clipboard
val invocationId: String? = null
Link copied to clipboard
Link copied to clipboard
val moduleName: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val targetPatterns: List<String>? = null
Link copied to clipboard
val user: String? = null