public class NodePoolJob extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NodePoolJob.NodeRequestAttemptState
A status enumeration to hold the attempt status.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if the specified object is equal to this object, false otherwise.
|
List<Attempt> |
getAttempts() |
String |
getBuildId()
Get string identifying the build that created this task
|
String |
getBuildNumber()
Get the jenkins build number for the project, if it's known.
|
String |
getDurationFormatted()
Returns the duration as a formatted string as: hh:mm:ss.
|
long |
getDurationSeconds()
Returns the total duration in seconds from all the attempts.
|
hudson.model.Label |
getLabel() |
NodePoolNode |
getNodePoolNode() |
NodePoolSlave |
getNodePoolSlave() |
String |
getOverviewString() |
List<NodeRequest> |
getRequests() |
NodePoolJob.NodeRequestAttemptState |
getResult()
Returns the result associated with the current attempt.
|
hudson.model.Run |
getRun() |
hudson.model.Queue.Task |
getTask() |
long |
getTaskId() |
int |
hashCode()
Returns the hash code associated with this object.
|
Boolean |
hasRequest(NodeRequest request) |
boolean |
isDone() |
boolean |
isFailure() |
boolean |
isSuccess() |
void |
logToBoth(String msg)
Write message to system log and build log with level INFO.
|
void |
logToBoth(String msg,
Level level)
Writes log message to the Jenkins System log and the relevant build log
|
void |
setNodePoolNode(NodePoolNode nodePoolNode) |
void |
setNodePoolSlave(NodePoolSlave nodePoolSlave) |
String |
toString()
Returns the string representation of this object.
|
public String getBuildId()
public String getOverviewString()
public NodePoolSlave getNodePoolSlave()
public NodePoolNode getNodePoolNode()
public void setNodePoolNode(NodePoolNode nodePoolNode)
public void setNodePoolSlave(NodePoolSlave nodePoolSlave)
public hudson.model.Run getRun()
public List<NodeRequest> getRequests()
public Boolean hasRequest(NodeRequest request)
public hudson.model.Label getLabel()
public hudson.model.Queue.Task getTask()
public long getTaskId()
public void logToBoth(String msg)
msg
- the message to logpublic void logToBoth(String msg, Level level)
msg
- the message to loglevel
- the log level to use for the system logpublic boolean isDone()
public boolean isSuccess()
public boolean isFailure()
public long getDurationSeconds()
public String getDurationFormatted()
public String getBuildNumber()
Builds that are not yet "running" do not have a build number.
public NodePoolJob.NodeRequestAttemptState getResult()
public boolean equals(Object o)
public int hashCode()
Copyright © 2016–2018. All rights reserved.