public interface IBuildDefinition extends IBuildDefinitionHandle, IAuditable, IBuildItem
com.ibm.team.build.common.buildConfigurationElements
extension point.Modifier and Type | Field and Description |
---|---|
static IItemType |
ITEM_TYPE
The item type for this auditable.
|
static java.lang.String |
PROPERTY_BUILD_AVERAGE_DATA
The name of the build average data property.
|
static java.lang.String |
PROPERTY_BUILD_RESULT_PRUNING_POLICY
The name of the build result pruning policy property.
|
static java.lang.String |
PROPERTY_BUILD_SCHEDULE
The name of the build schedule property.
|
static java.lang.String |
PROPERTY_CONFIGURATION_ELEMENTS
The name of the configuration elements property.
|
static java.lang.String |
PROPERTY_DESCRIPTION
The name of the description property.
|
static java.lang.String |
PROPERTY_EXPECTED_CONTRIBUTIONS
The name of the expected contributions property.
|
static java.lang.String |
PROPERTY_ID
The name of the build definition id property.
|
static java.lang.String |
PROPERTY_IGNORE_WARNINGS
The name of the ignore warnings property.
|
static java.lang.String |
PROPERTY_PROCESS_AREA
The name of the build definition process area property.
|
static java.lang.String |
PROPERTY_PROPERTIES
The name of the properties property.
|
PROPERTIES_COMPLETE, PROPERTIES_REQUIRED
MERGE_PREDECESSOR_STATE_PROPERTY, PREDECESSOR_STATE_PROPERTY
CONTEXT_ID_PROPERTY, ITEM_ID_PROPERTY, MAX_LARGE_STRING_BYTES, MAX_MEDIUM_STRING_BYTES, MAX_SMALL_STRING_BYTES, MODIFIED_BY_PROPERTY, MODIFIED_PROPERTY, STATE_ID_PROPERTY
Modifier and Type | Method and Description |
---|---|
IBuildDefinition |
copyDefinition()
Make a copy of this definition.
|
IBuildAverageDataHandle |
getBuildAverageData()
Get the average data for the build definition.
|
IBuildResultPruningPolicy |
getBuildResultPruningPolicy()
Get the pruning policy for the build definition.
|
IBuildSchedule |
getBuildSchedule()
Retrieves the schedule for the build.
|
IBuildConfigurationElement |
getConfigurationElement(java.lang.String elementId)
Get the configuration element with the given id.
|
java.util.List |
getConfigurationElements()
Get the configuration elements for this build definition.
|
java.lang.String |
getConfigurationPropertyValue(java.lang.String elementId,
java.lang.String name,
java.lang.String defaultValue)
Get the value of the configuration property with the given name in the
configuration element with the given id.
|
java.lang.String |
getDescription()
Retrieves the description of the build definition.
|
java.util.List |
getExpectedContributions()
Retrieves the expected contributions for this build definition.
|
java.lang.String |
getId()
Retrieves the build definition id.
|
IProcessAreaHandle |
getProcessArea()
Retrieves the process area the build definition is associated with.
|
java.util.List |
getProperties()
Get the build properties.
|
IBuildProperty |
getProperty(java.lang.String name)
Get the property with the given name.
|
java.lang.String |
getPropertyValue(java.lang.String name,
java.lang.String defaultValue)
Get the value of the property with the given name.
|
void |
initializeConfiguration(IBuildConfigurationElement element)
Initialize the build definition from the given configuration element.
|
void |
initializeConfiguration(IBuildDefinitionTemplate template)
Initialize the build definition from the given template.
|
boolean |
isIgnoreWarnings()
Determines if warnings will be ignored when computing the overall status
for builds of this type.
|
void |
removeConfigurationProperty(java.lang.String elementId,
java.lang.String name)
Removes the configuration property with the given name in the
configuration element with the given id.
|
void |
setBuildAverageData(IBuildAverageDataHandle buildAverageData)
Set the average data for the build definition.
|
void |
setBuildResultPruningPolicy(IBuildResultPruningPolicy policy)
Set the build definition pruning policy.
|
void |
setBuildSchedule(IBuildSchedule buildSchedule)
Set the build schedule.
|
void |
setConfigurationProperty(java.lang.String elementId,
java.lang.String name,
java.lang.String value)
Set the value of the configuration property with the given name in the
configuration element with the given id.
|
void |
setDescription(java.lang.String description)
Sets the description of the build definition.
|
void |
setId(java.lang.String id)
Sets the build definition id.
|
void |
setIgnoreWarnings(boolean ignoreWarnings)
Set whether or not warnings should be ignored when computing the overall
status for builds of this type.
|
void |
setProcessArea(IProcessAreaHandle processAreaHandle)
Sets the process area the build definition is associated with.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set the value of the property with the given name.
|
getMergePredecessorState, getPredecessorState
isNewItem
getContextId, getItemHandle, getModifiedBy, getRedactedCopy, getRequestedModified, getRequestedStateId, getStateHandle, getWorkingCopy, hasHistory, isComplete, isPropertySet, isRedactedCopy, isWorkingCopy, modified, setContextId, setRequestedModified, setRequestedStateId
equals, getAdapter, getFullState, getItemId, getItemType, getOrigin, getStateId, hasFullState, hasStateId, isAuditable, isConfigurationAware, isImmutable, isSimple, isUnmanaged, makeImmutable, protect, sameItemId, sameStateId, size
static final IItemType ITEM_TYPE
static final java.lang.String PROPERTY_BUILD_AVERAGE_DATA
static final java.lang.String PROPERTY_BUILD_RESULT_PRUNING_POLICY
static final java.lang.String PROPERTY_BUILD_SCHEDULE
static final java.lang.String PROPERTY_DESCRIPTION
static final java.lang.String PROPERTY_ID
static final java.lang.String PROPERTY_IGNORE_WARNINGS
static final java.lang.String PROPERTY_PROPERTIES
static final java.lang.String PROPERTY_PROCESS_AREA
static final java.lang.String PROPERTY_EXPECTED_CONTRIBUTIONS
static final java.lang.String PROPERTY_CONFIGURATION_ELEMENTS
java.lang.String getId()
void setId(java.lang.String id)
id
- The build definition id.java.util.List getExpectedContributions()
IExpectedContributionsConfigurationElement.ELEMENT_ID
.IExpectedContribution
.IBuildResultPruningPolicy getBuildResultPruningPolicy()
void setBuildResultPruningPolicy(IBuildResultPruningPolicy policy)
policy
- The pruning policy for the build definition.java.util.List getProperties()
IPropertiesConfigurationElement.ELEMENT_ID
.IBuildProperty
.IBuildProperty getProperty(java.lang.String name)
null
if a
property with the given name does not exist.name
- The property name.null
if a property with the given
name does not exist.java.lang.String getPropertyValue(java.lang.String name, java.lang.String defaultValue)
name
- The property name.defaultValue
- The default value (may be null
).void setProperty(java.lang.String name, java.lang.String value)
name
- The property name.value
- The property value.java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- The description of the build definition.IBuildSchedule getBuildSchedule()
IScheduleConfigurationElement.ELEMENT_ID
.void setBuildSchedule(IBuildSchedule buildSchedule)
IScheduleConfigurationElement.ELEMENT_ID
.buildSchedule
- The schedule for the build definition.boolean isIgnoreWarnings()
void setIgnoreWarnings(boolean ignoreWarnings)
ignoreWarnings
- IBuildAverageDataHandle getBuildAverageData()
null
if there is no average data for the build
definition.void setBuildAverageData(IBuildAverageDataHandle buildAverageData)
buildAverageData
- The average data for the build definition.IProcessAreaHandle getProcessArea()
void setProcessArea(IProcessAreaHandle processAreaHandle)
processAreaHandle
- The process area to associate the build definition with.java.util.List getConfigurationElements()
List
whose elements are of type
IBuildConfigurationElement
.IBuildConfigurationElement getConfigurationElement(java.lang.String elementId)
elementId
- The element id.null
if an element
with the given id does not exist.java.lang.String getConfigurationPropertyValue(java.lang.String elementId, java.lang.String name, java.lang.String defaultValue)
elementId
- The configuration element id.name
- The configuration property name.defaultValue
- The default value (may be null
)void removeConfigurationProperty(java.lang.String elementId, java.lang.String name)
elementId
- The configuration element id.name
- The configuration property name.void setConfigurationProperty(java.lang.String elementId, java.lang.String name, java.lang.String value)
elementId
- The configuration element id.name
- The configuration property name.value
- The configuration property value.IBuildDefinition copyDefinition()
void initializeConfiguration(IBuildConfigurationElement element)
If an element with the same id is already present in the definition, it is overwritten at its current position.
This method may be called more than once with different configuration elements.
element
- The configuration element to initialize the definition with.void initializeConfiguration(IBuildDefinitionTemplate template)
This method may be called more than once with different templates.
template
- The template to initialize the definition with.