Class RemoteBuildInfo
java.lang.Object
org.jenkinsci.plugins.ParameterizedRemoteTrigger.remoteJob.RemoteBuildInfo
- All Implemented Interfaces:
Serializable
This class contains information about the remote build.
NOT_TRIGGERED ---+---> QUEUED --+--> RUNNING -----+-----> FINISHED
queueId buildNumber result
& buildURL (ABORTED | UNSTABLE | FAILURE | SUCCESS)
By default, the remote build status is NOT_TRIGGERED and the remote build result is NOT_BUILT.
When the remote build is triggered, the remote job enters the queue (waiting list) and the status of the remote build changes to QUEUED. In this moment the queueId is available. The queueId can be used to request information about the remote job while it is waiting to be executed.
When the remote job leaves the queue, the status changes to RUNNING. Then, the build number and the build URL are available. The build URL can be used to request information about the remote job while it is being executed.
When the remote job is finished, the status changes to FINISHED. Then, the remote build result is available.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
isQueued()
boolean
void
setBuildData
(int buildNumber, URL buildURL) void
setBuildResult
(Result result) void
setBuildResult
(String result) void
setBuildStatus
(RemoteBuildStatus status) void
setQueueId
(String queueId) toString()
-
Constructor Details
-
RemoteBuildInfo
public RemoteBuildInfo()
-
-
Method Details
-
getQueueId
-
getBuildNumber
@NonNull public int getBuildNumber() -
getBuildURL
-
getStatus
-
getResult
-
setQueueId
-
setBuildData
- Throws:
AbortException
-
setBuildStatus
-
setBuildResult
-
setBuildResult
-
toString
-
isNotTriggered
public boolean isNotTriggered() -
isQueued
public boolean isQueued() -
isRunning
public boolean isRunning() -
isFinished
public boolean isFinished()
-