Enum StatusJob
- java.lang.Object
-
- java.lang.Enum<StatusJob>
-
- com.tikal.jenkins.plugins.multijob.StatusJob
-
- All Implemented Interfaces:
Serializable
,Comparable<StatusJob>
public enum StatusJob extends Enum<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 Constants Enum Constant 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.DOESNT_CONTAINS_WORKSPACE
The job doesn't contains workspace.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.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Returns the message associated to the status job as is.String
getMessage(Job 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.
-
-
-
Enum Constant Detail
-
CHANGED_SINCE_LAST_BUILD
public static final StatusJob CHANGED_SINCE_LAST_BUILD
The job has scm changes since last build.
-
BUILD_ALWAYS_IS_ENABLED
public static final StatusJob BUILD_ALWAYS_IS_ENABLED
The 'Build Always' feature is enabled.
-
NOT_CHANGED_SINCE_LAST_BUILD
public static final StatusJob NOT_CHANGED_SINCE_LAST_BUILD
The job has no scm changes since last build.
-
BUILD_ONLY_IF_SCM_CHANGES_DISABLED
public static final StatusJob BUILD_ONLY_IF_SCM_CHANGES_DISABLED
The 'Build Only If Scm Changes' feature is disabled.
-
UNKNOWN_STATUS
public static final StatusJob UNKNOWN_STATUS
Unknown status. It is impossible to identify the status of the job.
-
IS_DISABLED
public static final StatusJob IS_DISABLED
The job is disabled.
-
IS_DISABLED_AT_PHASECONFIG
public static final StatusJob IS_DISABLED_AT_PHASECONFIG
The job in the phase configuration is disabled.
-
DOESNT_CONTAINS_LASTBUILD
public static final StatusJob DOESNT_CONTAINS_LASTBUILD
The job doesn't contains lastbuild.
-
LASTBUILD_RESULT_IS_WORSE_THAN_UNSTABLE
public static final StatusJob LASTBUILD_RESULT_IS_WORSE_THAN_UNSTABLE
Lastbuild result is worse than unstable.
-
WORKSPACE_IS_EMPTY
public static final StatusJob WORKSPACE_IS_EMPTY
Workspace is empty.
-
DOESNT_CONTAINS_WORKSPACE
public static final StatusJob DOESNT_CONTAINS_WORKSPACE
The job doesn't contains workspace.
-
-
Method Detail
-
values
public static StatusJob[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StatusJob c : StatusJob.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusJob valueOf(String name)
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
public String getMessage()
Returns the message associated to the status job as is.- Returns:
- a text with the message.
-
-