public class Build extends BaseModel
Modifier and Type | Field and Description |
---|---|
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. |
Constructor and Description |
---|
Build() |
Build(Build from) |
Build(int number,
String url) |
Modifier and Type | Method and Description |
---|---|
BuildWithDetails |
details() |
boolean |
equals(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.
|
String |
getUrl() |
int |
hashCode() |
protected void |
setNumber(int number) |
protected void |
setQueueId(int queueId) |
protected void |
setUrl(String url) |
String |
Stop() |
String |
Stop(boolean crumbFlag)
Stops the build which is currently in progress.
|
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, String url)
public int getNumber()
public int getQueueId()
public String getUrl()
protected void setNumber(int number)
protected void setQueueId(int queueId)
protected void setUrl(String url)
public BuildWithDetails details() throws IOException
BUILD_HAS_NEVER_RUN
will be returned.IOException
- in case of an error.public TestReport getTestReport() throws IOException
TestReport
for a Maven Job type.TestReport
IOException
- in case of an error.public TestResult getTestResult() throws IOException
TestResult
IOException
- in case of an error.public String Stop() throws org.apache.http.client.HttpResponseException, IOException
org.apache.http.client.HttpResponseException
IOException
public String Stop(boolean crumbFlag) throws org.apache.http.client.HttpResponseException, IOException
crumbFlag
- flag used to specify if a crumb is passed into for the requestorg.apache.http.client.HttpResponseException
- in case of an error.IOException
- in case of an error.Copyright © 2018. All rights reserved.