public interface BuildResult extends ManagedObject
Modifier and Type | Interface and Description |
---|---|
static class |
BuildResult.QueryParms
Query parameters are used to do a generic query for build results.
|
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 contents)
Add an attachment to the build result
|
void |
addAttachment(java.lang.String name,
java.lang.String contentType,
java.io.InputStream contents)
Add an attachment to the build result
|
void |
addProperty(java.lang.String name,
java.util.List<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(java.lang.String name)
Delete an existing attachment(s) with the provided name
|
void |
deleteProperty(java.lang.String name)
Delete a property on the build result.
|
void |
deleteProperty(java.lang.String name,
java.lang.String value)
Delete a property/value pair on the build result.
|
Attachment |
getAttachment(java.lang.String name)
Retrieve an attachment from the build result
|
java.util.List<Attachment> |
getAttachments()
Get all attachments stored in this build result
|
Attachment |
getBuildReport()
Return the build report HTML for display purpose
|
Attachment |
getBuildReportData()
Return the build report JSON data
|
java.lang.String |
getGroup()
Return the group the build belongs to
|
java.lang.String |
getLabel()
Returns the label of the build result
|
java.util.List<java.lang.String> |
getProperties(java.lang.String name)
returns all of the values of the named property in the build result
|
java.lang.String |
getProperty(java.lang.String name)
return the value of the property in the build result.
|
java.util.List<java.lang.String> |
getPropertyNames()
returns a list of property names in the build result
|
int |
getState()
Returns the current state of the build result
|
int |
getStatus()
Returns the current status of the build result
|
void |
setBuildReport(java.io.InputStream contents)
Set the content of the build report HTML
|
void |
setBuildReportData(java.io.InputStream contents)
Set the content of the build report JSON data
|
void |
setGroup(java.lang.String group)
Sets the group to which this BuildResult belongs
|
void |
setLabel(java.lang.String label)
Sets the BuildResult label
|
void |
setProperty(java.lang.String name,
java.util.List<java.lang.String> values)
Replace a property in the build result
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Replace a property in the build result
|
void |
setState(int value)
Update the current state of the build result
|
void |
setStatus(int value)
Update the current status of the build result
|
getOwner, getPermission, getTeam, setOwner, setPermission, setTeam
getCreated, getCreatedBy, getLastUpdated, getLastUpdatedBy, 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 getGroup()
void setGroup(java.lang.String group) throws BuildException
BuildException
java.lang.String getLabel()
void setLabel(java.lang.String label) throws BuildException
label
- the labelBuildException
int getState() throws BuildException
BuildException
void setState(int value) throws BuildException
value
- new state of the build resultBuildException
- an exception occurredint getStatus() throws BuildException
BuildException
void setStatus(int value) throws BuildException
value
- new status of the build resultBuildException
- an exception occurredAttachment getBuildReport() throws BuildException
BuildException
- an exception occurredvoid setBuildReport(java.io.InputStream contents) throws BuildException
contents
- the input steam of the contents of the HTML build report. If parameter is null, the
current build report will be removed.BuildException
- an exception occurredAttachment getBuildReportData() throws BuildException
BuildException
- an exception occurredvoid setBuildReportData(java.io.InputStream contents) throws BuildException
contents
- the input stream of the contents of the build report JSON data. If parameter is null, the
current build report JSON data will be removed.BuildException
- an exception occurredjava.lang.String getProperty(java.lang.String name) throws BuildException
name
- the name of the property to retrieveBuildException
java.util.List<java.lang.String> getProperties(java.lang.String name) throws BuildException
name
- the name of the property to retrieveBuildException
java.util.List<java.lang.String> getPropertyNames() throws BuildException
BuildException
void setProperty(java.lang.String name, java.lang.String value) throws BuildException
name
- the name of the property. If property name already exists, the
value will be replaced.value
- the value of the property. If null, current property, if
exists, will be deleted.BuildException
void setProperty(java.lang.String name, java.util.List<java.lang.String> values) throws BuildException
name
- the name of the property. If property name already exists, the
values will be replaced.values
- the value of the property. If null, current property, if
exists, will be deleted.BuildException
void addProperty(java.lang.String name, java.lang.String value) throws BuildException
name
- the name of the property. If property name already exists, the
value will be added.value
- the value of the property.BuildException
void addProperty(java.lang.String name, java.util.List<java.lang.String> values) throws BuildException
name
- the name of the property. If property name already exists, the
values will be added.values
- the value of the property.BuildException
void deleteProperty(java.lang.String name) throws BuildException
name
- the name of the propertyBuildException
void deleteProperty(java.lang.String name, java.lang.String value) throws BuildException
name
- the name of the propertyvalue
- the value of the propertyBuildException
void addAttachment(java.lang.String name, java.io.InputStream contents) throws BuildException
name
- the filename of the attachment to add to the buildResultcontents
- the input stream of the contents of the attachmentBuildException
- an exception occurredvoid addAttachment(java.lang.String name, java.lang.String contentType, java.io.InputStream contents) throws BuildException
name
- the filename of the attachment to add to the buildResultcontentType
- the content type of the attachmentcontents
- the input stream of the contents of the attachmentBuildException
- an exception occurredAttachment getAttachment(java.lang.String name) throws BuildException
name
- the filename of the attachmentBuildException
void deleteAttachment(java.lang.String name) throws BuildException
name
- the name of the attachment(s)BuildException
- an exception occurredjava.util.List<Attachment> getAttachments() throws BuildException
BuildException
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.