public interface BuildResult extends ManagedObject
Modifier and Type | Field and Description |
---|---|
static int |
ABANDONED |
static int |
CLEAN |
static int |
COMPLETE |
static int |
ERROR |
static int |
NEW |
static int |
PROCESSING |
static int |
WARNING |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(java.lang.String name,
java.io.InputStream content)
Add an attachment to the build result
|
void |
addAttachment(java.lang.String name,
java.io.InputStream content,
java.lang.String contentType)
Add an attachment to the build result
|
void |
addProperty(java.lang.String name,
java.util.Set<java.lang.String> values)
Add a property to the build result
|
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a property to the build result
|
void |
deleteAttachment(long id)
Delete an existing attachment
|
void |
deleteAttachment(java.lang.String name)
Delete an existing attachment
|
void |
deleteProperty(java.lang.String name)
Delete a property with the given name
|
void |
deleteProperty(java.lang.String name,
java.lang.String value)
Delete the property with the given name and given value
|
java.io.InputStream |
fetchAttachment(long id)
Retrieve an attachment with the given ID
|
java.io.InputStream |
fetchAttachment(java.lang.String name)
Retrieve an attachment with the given name
|
java.io.InputStream |
fetchBuildReport()
Return the build report HTML for display purpose
|
java.io.InputStream |
fetchBuildReportData()
Return the raw build report data in JSON
|
java.util.List<java.lang.String> |
getAttachmentNames()
Get the names of all attachments stored in this build result
|
java.util.List<Attachment> |
getAttachments()
Get all attachments stored in this build result
|
java.util.List<Attachment> |
getAttachments(java.lang.String name)
Find all attachments with a specific name
|
java.lang.String |
getGroup()
Return the group the build belongs to
|
java.lang.String |
getLabel()
Returns the label of the build result
|
java.lang.String |
getProperty(java.lang.String name)
return the value of the property in the build result
|
java.util.Set<java.lang.String> |
getPropertyNames()
Get the names of all properties found in the build result
|
java.util.Set<java.lang.String> |
getPropertyValues(java.lang.String name)
Return the value of the property in a Set
|
int |
getState() |
int |
getStatus() |
java.lang.String |
getUrl()
Return the URL to access the build result
|
void |
setBuildReport(java.io.InputStream content)
Set the content of the build report HTML
|
void |
setBuildReportData(java.io.InputStream content)
Set the raw data of the build report
|
void |
setProperty(java.lang.String name,
java.util.Set<java.lang.String> values)
Add a property to the build result
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Add a property to the build result
|
void |
setState(int value) |
void |
setStatus(int value) |
void |
updateAttachment(long id,
java.io.InputStream content,
java.lang.String contentType)
Update an existing attachment
|
void |
updateAttachment(java.lang.String name,
java.io.InputStream content)
Update an existing attachment
|
clearUnsavedChanges, getOwner, getPermission, getTeam, hasUnsavedChanges, refresh, save, setOwner, setPermission, setTeam
getCreated, getCreatedBy, getId, getLastUpdated, getLastUpdatedBy, getRestService, toJSON, toString
static final int NEW
static final int PROCESSING
static final int COMPLETE
static final int ABANDONED
static final int CLEAN
static final int ERROR
static final int WARNING
java.lang.String getUrl()
getUrl
in interface RepositoryObject
java.lang.String getGroup()
java.lang.String getLabel()
int getState()
void setState(int value)
int getStatus()
void setStatus(int value)
java.io.InputStream fetchBuildReport() throws ConnectionException
ConnectionException
- an exception occurredjava.io.InputStream fetchBuildReportData() throws ConnectionException
ConnectionException
- an exception occurredvoid setBuildReport(java.io.InputStream content)
content
- the content of the build reportvoid setBuildReportData(java.io.InputStream content)
content
- the raw data of the build reportjava.lang.String getProperty(java.lang.String name)
name
- the name of the property to retrievejava.util.Set<java.lang.String> getPropertyValues(java.lang.String name)
name
- the name of the propertyvoid setProperty(java.lang.String name, java.lang.String value)
name
- the name of the propertyvalue
- the value of the propertyvoid setProperty(java.lang.String name, java.util.Set<java.lang.String> values)
name
- the name of the propertyvalues
- the values of the propertyvoid addProperty(java.lang.String name, java.lang.String value)
name
- the name of the propertyvalue
- the value of the propertyvoid addProperty(java.lang.String name, java.util.Set<java.lang.String> values)
name
- the name of the propertyvalues
- the values of the propertyvoid deleteProperty(java.lang.String name)
name
- the name of the property to be deletedvoid deleteProperty(java.lang.String name, java.lang.String value)
name
- the name of the propertyvalue
- the value of the propertyjava.util.Set<java.lang.String> getPropertyNames()
java.io.InputStream fetchAttachment(java.lang.String name) throws ConnectionException
name
- the name of the attachmentConnectionException
- an exception occurredjava.io.InputStream fetchAttachment(long id) throws ConnectionException
id
- the ID of the attachmentConnectionException
- an exception occurredvoid addAttachment(java.lang.String name, java.io.InputStream content) throws ConnectionException
name
- the name of the attachmentcontent
- the content of the attachmentConnectionException
- an exception occurredvoid addAttachment(java.lang.String name, java.io.InputStream content, java.lang.String contentType) throws ConnectionException
name
- the name of the attachmentcontent
- the content of the attachmentcontentType
- the content type of the attachmentConnectionException
- an exception occurredvoid updateAttachment(java.lang.String name, java.io.InputStream content) throws ConnectionException
name
- the name of the attachmentcontent
- the updated contentConnectionException
- an exception occurredvoid updateAttachment(long id, java.io.InputStream content, java.lang.String contentType) throws ConnectionException
id
- the id of the attachmentcontent
- the updated contentcontentType
- the content type of the attachmentConnectionException
- an exception occurredvoid deleteAttachment(java.lang.String name) throws ConnectionException
name
- the name of the attachmentConnectionException
- an exception occurredvoid deleteAttachment(long id) throws ConnectionException
id
- the id of the attachmentConnectionException
- an exception occurredjava.util.List<java.lang.String> getAttachmentNames()
java.util.List<Attachment> getAttachments()
java.util.List<Attachment> getAttachments(java.lang.String name)
name
- the name of the attachments<IBM Copyright © 2018 IBM Corp. All Rights Reserved.