number
- build number (integer)
result
- typically
SUCCESS
, UNSTABLE
, or FAILURE
(may be null for an ongoing build)
currentResult
- typically
SUCCESS
, UNSTABLE
, or FAILURE
. Will never be null.
resultIsBetterOrEqualTo(String)
- Compares the current build result to the provided result string (
SUCCESS
, UNSTABLE
, or FAILURE
) and returns true if the current build result is better than or equal to the provided result.
resultIsWorseOrEqualTo(String)
- Compares the current build result to the provided result string (
SUCCESS
, UNSTABLE
, or FAILURE
) and returns true if the current build result is worse than or equal to the provided result.
displayName
- normally
#123
but sometimes set to, e.g., an SCM commit identifier.
fullDisplayName
- normally
folder1 » folder2 » foo #123
.
projectName
- Name of the project of this build, such as
foo
.
fullProjectName
- Full name of the project of this build, including folders such as
folder1/folder2/foo
.
description
- additional information about the build
id
- normally
number
as a string
timeInMillis
- time since the epoch when the build was scheduled
startTimeInMillis
- time since the epoch when the build started running
duration
- duration of the build in milliseconds
durationString
- a human-readable representation of the build duration
previousBuild
- another similar object, or null
nextBuild
- similarly
absoluteUrl
- URL of build index page
buildVariables
- for a non-Pipeline downstream build, offers access to a map of defined build variables; for a Pipeline downstream build, any variables set globally on
env
changeSets
- a list of changesets coming from distinct SCM checkouts; each has a
kind
and is a list of commits; each commit has a commitId
, timestamp
, msg
, author
, and affectedFiles
each of which has an editType
and path
; the value will not generally be Serializable
so you may only access it inside a method marked @NonCPS
upstreamBuilds
- a list of upstream builds. These are the builds of the upstream projects whose artifacts feed into this build.
rawBuild
- a
hudson.model.Run
with further APIs, only for trusted libraries or administrator-approved scripts outside the sandbox; the value will not be Serializable
so you may only access it inside a method marked @NonCPS
keepLog
true
if the log file for this build should be kept and not deleted.