Enum RemoteBuildStatus
java.lang.Object
java.lang.Enum<RemoteBuildStatus>
org.jenkinsci.plugins.ParameterizedRemoteTrigger.remoteJob.RemoteBuildStatus
- All Implemented Interfaces:
Serializable
,Comparable<RemoteBuildStatus>
This class implements the build status of a remote build.
NOT_TRIGGERED --+--> QUEUED --+--> RUNNING --+--> FINISHED
| |
| |
+-------> Cancelled <----------+
By default, the remote build status is NOT_TRIGGERED.
When the remote build is triggered, the remote job enters the queue (waiting list) and the status of the remote build changes to QUEUED.
When the remote job leaves the queue, the status changes to RUNNING.
When the remote job is finished, the status changes to FINISHED. This is the final status. In addition, at the status QUEUED and FINISHED, a remote build can be cancelled, in this case an AbortException is thrown.
-
Enum Constant Summary
Enum ConstantDescriptionThe remote build is finished.The remote job was not triggered and it did not enter the queue.The remote job was triggered and it did enter the queue.The remote job left the queue and it is running currently. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static RemoteBuildStatus
Returns the enum constant of this type with the specified name.static RemoteBuildStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_TRIGGERED
The remote job was not triggered and it did not enter the queue. -
QUEUED
The remote job was triggered and it did enter the queue. -
RUNNING
The remote job left the queue and it is running currently. -
FINISHED
The remote build is finished.
-
-
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
-
toString
- Overrides:
toString
in classEnum<RemoteBuildStatus>
-