public class Build extends BaseModel
| 限定符和类型 | 字段和说明 |
|---|---|
static Build |
BUILD_HAS_BEEN_CANCELLED
This will be returned by the API in cases where a build has been
cancelled.
|
static Build |
BUILD_HAS_NEVER_RUN
This will be returned by the API in cases where no build has ever been
executed like
JobWithDetails.getLastBuild() etc. |
| 限定符和类型 | 方法和说明 |
|---|---|
BuildWithDetails |
details() |
boolean |
equals(java.lang.Object obj) |
int |
getNumber() |
int |
getQueueId() |
TestReport |
getTestReport()
This is to get the information about
TestReport
for a Maven Job type. |
TestResult |
getTestResult()
This is to get the information about run tests for a
non Maven job type.
|
java.lang.String |
getUrl() |
int |
hashCode() |
java.lang.String |
Stop() |
public static final Build BUILD_HAS_NEVER_RUN
JobWithDetails.getLastBuild() etc. This will also
be returned by details() is the build has not been run.public static final Build BUILD_HAS_BEEN_CANCELLED
public Build()
public Build(Build from)
public Build(int number,
java.lang.String url)
public int getNumber()
public int getQueueId()
public java.lang.String getUrl()
public BuildWithDetails details() throws java.io.IOException
BUILD_HAS_NEVER_RUN will be returned.java.io.IOException - in case of an error.public TestReport getTestReport() throws java.io.IOException
TestReport
for a Maven Job type.TestReportjava.io.IOException - in case of an error.public TestResult getTestResult() throws java.io.IOException
TestResultjava.io.IOException - in case of an error.public java.lang.String Stop()
throws org.apache.http.client.HttpResponseException,
java.io.IOException
org.apache.http.client.HttpResponseExceptionjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object