Enum StatusJob
- All Implemented Interfaces:
Serializable
,Comparable<StatusJob>
The different statuses of the job which may or not triggered the build.
These are used to compute the MultiJobBuilder.JOB_IS_BUILDABLE
variable.
There is only one status available for each job, and the current check sequence is
described at MultiJobBuilder.getScmChange().
-
Enum Constant Summary
Enum ConstantDescriptionThe 'Build Always' feature is enabled.The 'Build Only If Scm Changes' feature is disabled.The job has scm changes since last build.The job doesn't contains lastbuild.The job doesn't contains workspace.The job is disabled.The job in the phase configuration is disabled.Lastbuild result is worse than unstable.The job has no scm changes since last build.Unknown status.Workspace is empty. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message associated to the status job as is.getMessage
(Job subjob) Formats the message associated to the status job.abstract boolean
Every status job must report about if the job must be built or not.static StatusJob
Returns the enum constant of this type with the specified name.static StatusJob[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHANGED_SINCE_LAST_BUILD
The job has scm changes since last build. -
BUILD_ALWAYS_IS_ENABLED
The 'Build Always' feature is enabled. -
NOT_CHANGED_SINCE_LAST_BUILD
The job has no scm changes since last build. -
BUILD_ONLY_IF_SCM_CHANGES_DISABLED
The 'Build Only If Scm Changes' feature is disabled. -
UNKNOWN_STATUS
Unknown status. It is impossible to identify the status of the job. -
IS_DISABLED
The job is disabled. -
IS_DISABLED_AT_PHASECONFIG
The job in the phase configuration is disabled. -
DOESNT_CONTAINS_LASTBUILD
The job doesn't contains lastbuild. -
LASTBUILD_RESULT_IS_WORSE_THAN_UNSTABLE
Lastbuild result is worse than unstable. -
WORKSPACE_IS_EMPTY
Workspace is empty. -
DOESNT_CONTAINS_WORKSPACE
The job doesn't contains workspace.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isBuildable
public abstract boolean isBuildable()Every status job must report about if the job must be built or not.- Returns:
true
the job will be built,false
the job will not be built.
-
getMessage
Returns the message associated to the status job as is.- Returns:
- a text with the message.
-
getMessage
Formats the message associated to the status job.- Parameters:
subjob
- the job associated to this status job.- Returns:
- a text with the formatted message.
-