public enum StatusJob extends Enum<StatusJob>
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 and Description |
---|
BUILD_ALWAYS_IS_ENABLED
The 'Build Always' feature is enabled.
|
BUILD_ONLY_IF_SCM_CHANGES_DISABLED
The 'Build Only If Scm Changes' feature is disabled.
|
CHANGED_SINCE_LAST_BUILD
The job has scm changes since last build.
|
DOESNT_CONTAINS_LASTBUILD
The job doesn't contains lastbuild.
|
IS_DISABLED
The job is disabled.
|
IS_DISABLED_AT_PHASECONFIG
The job in the phase configuration is disabled.
|
LASTBUILD_RESULT_IS_WORSE_THAN_UNSTABLE
Lastbuild result is worse than unstable.
|
NOT_CHANGED_SINCE_LAST_BUILD
The job has no scm changes since last build.
|
UNKNOWN_STATUS
Unknown status.
|
WORKSPACE_IS_EMPTY
Workspace is empty.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the message associated to the status job as is.
|
String |
getMessage(hudson.model.AbstractProject subjob)
Formats the message associated to the status job.
|
abstract boolean |
isBuildable()
Every status job must report about if the job must be built or not.
|
static StatusJob |
valueOf(String name)
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.
|
public static final StatusJob CHANGED_SINCE_LAST_BUILD
public static final StatusJob BUILD_ALWAYS_IS_ENABLED
public static final StatusJob NOT_CHANGED_SINCE_LAST_BUILD
public static final StatusJob BUILD_ONLY_IF_SCM_CHANGES_DISABLED
public static final StatusJob UNKNOWN_STATUS
public static final StatusJob IS_DISABLED
public static final StatusJob IS_DISABLED_AT_PHASECONFIG
public static final StatusJob DOESNT_CONTAINS_LASTBUILD
public static final StatusJob LASTBUILD_RESULT_IS_WORSE_THAN_UNSTABLE
public static final StatusJob WORKSPACE_IS_EMPTY
public static StatusJob[] values()
for (StatusJob c : StatusJob.values()) System.out.println(c);
public static StatusJob valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean isBuildable()
true
the job will be built, false
the job will not be built.public String getMessage()
public String getMessage(hudson.model.AbstractProject subjob)
subjob
- the job associated to this status job.Copyright © 2004-2015. All Rights Reserved.