public class NodePoolJob extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NodePoolJob.Status
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 |
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() |
NodePool |
getNodePool()
Returns the underlying NodePool object assisted with the current request attempt.
|
NodePoolJob.Status |
getResult()
Returns the result associated with the current attempt.
|
hudson.model.Queue.Task |
getTask() |
long |
getTaskId() |
int |
hashCode()
Returns the hash code associated with this object.
|
boolean |
isDone() |
boolean |
isFailure() |
boolean |
isSuccess() |
void |
setBuildNumber(int buildNumber)
Sets the build number value.
|
String |
toString()
Returns the string representation of this object.
|
public hudson.model.Label getLabel()
public hudson.model.Queue.Task getTask()
public long getTaskId()
public boolean isDone()
public boolean isSuccess()
public boolean isFailure()
public long getDurationSeconds()
public String getDurationFormatted()
public NodePool getNodePool()
public String getBuildNumber()
Builds that are not yet "running" do not have a build number.
public NodePoolJob.Status getResult()
public void setBuildNumber(int buildNumber)
buildNumber
- the build number valueIllegalArgumentException
- if the buildNumber is negative.public boolean equals(Object o)
public int hashCode()
Copyright © 2016–2018. All rights reserved.