public class RemoteBuildInfo extends Object implements Serializable
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.
Constructor and Description |
---|
RemoteBuildInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getBuildNumber() |
URL |
getBuildURL() |
String |
getQueueId() |
Result |
getResult() |
RemoteBuildStatus |
getStatus() |
boolean |
isFinished() |
boolean |
isNotTriggered() |
boolean |
isQueued() |
boolean |
isRunning() |
void |
setBuildData(int buildNumber,
URL buildURL) |
void |
setBuildResult(Result result) |
void |
setBuildResult(String result) |
void |
setBuildStatus(RemoteBuildStatus status) |
void |
setQueueId(String queueId) |
String |
toString() |
@CheckForNull public String getQueueId()
@Nonnull public int getBuildNumber()
@CheckForNull public URL getBuildURL()
@Nonnull public RemoteBuildStatus getStatus()
public void setQueueId(String queueId)
public void setBuildData(@Nonnull int buildNumber, @Nullable URL buildURL) throws AbortException
AbortException
public void setBuildStatus(RemoteBuildStatus status)
public void setBuildResult(Result result)
public void setBuildResult(String result)
public boolean isNotTriggered()
public boolean isQueued()
public boolean isRunning()
public boolean isFinished()
Copyright © 2016–2023. All rights reserved.