NpmAttributes

data class NpmAttributes(@Json(name = "id") val id: String, @Json(name = "buildStartTime") val buildStartTime: Long, @Json(name = "buildDuration") val buildDuration: Long, @Json(name = "npmVersion") val npmVersion: String, @Json(name = "npmAgentVersion") val npmAgentVersion: String, @Json(name = "command") val command: NpmCommand, @Json(name = "links") val links: List<BuildAttributesLink>, @Json(name = "tags") val tags: List<String>, @Json(name = "values") val propertyValues: List<BuildAttributesValue>, @Json(name = "hasFailed") val hasFailed: Boolean, @Json(name = "exitCode") val exitCode: Int? = null, @Json(name = "nodejsVersion") val nodejsVersion: String? = null, @Json(name = "user") val user: String? = null, @Json(name = "host") val host: String? = null, @Json(name = "packageName") val packageName: String? = null, @Json(name = "hasVerificationFailure") val hasVerificationFailure: Boolean? = null, @Json(name = "hasNonVerificationFailure") val hasNonVerificationFailure: Boolean? = null)

The attributes of an npm 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.

npmVersion

The npm version used.

npmAgentVersion

The version of the Develocity npm agent.

command
links

The list of Build Scan links.

tags

The list of Build Scan tags.

propertyValues

The list of Build Scan values.

hasFailed

True when the build fails, false otherwise.

exitCode

The exit code of the npm process.

nodejsVersion

The Node.js version used.

user

The username of the user that ran the build.

host

The hostname of the user that ran the build, if set.

packageName

The name of the package. null in case of very early build failure.

hasVerificationFailure

Set only if the build failed: 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

Set only if the build failed: 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.

Constructors

Link copied to clipboard
constructor(@Json(name = "id") id: String, @Json(name = "buildStartTime") buildStartTime: Long, @Json(name = "buildDuration") buildDuration: Long, @Json(name = "npmVersion") npmVersion: String, @Json(name = "npmAgentVersion") npmAgentVersion: String, @Json(name = "command") command: NpmCommand, @Json(name = "links") links: List<BuildAttributesLink>, @Json(name = "tags") tags: List<String>, @Json(name = "values") propertyValues: List<BuildAttributesValue>, @Json(name = "hasFailed") hasFailed: Boolean, @Json(name = "exitCode") exitCode: Int? = null, @Json(name = "nodejsVersion") nodejsVersion: String? = null, @Json(name = "user") user: String? = null, @Json(name = "host") host: String? = null, @Json(name = "packageName") packageName: String? = null, @Json(name = "hasVerificationFailure") hasVerificationFailure: Boolean? = null, @Json(name = "hasNonVerificationFailure") hasNonVerificationFailure: Boolean? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val host: String?
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val user: String?