public interface BuildTypeTemplate extends BuildTypeIdentity, BuildTypeSettings, CompatibleAgents, java.lang.Comparable<BuildTypeTemplate>, ParametersSupport, Dependent
BuildTypeOptions.BuildConfigurationType
VcsLabelingSettings.LabelingType
BT_ALLOW_EXTERNAL_STATUS, BT_ALLOW_PERSONAL_BUILD_TRIGGERING, BT_ARTIFACT_PUBLISH_CONDITION, BT_ARTIFACT_RULES, BT_BRANCH_FILTER, BT_BUILD_CONFIGURATION_TYPE, BT_BUILD_DEFAULT_BRANCH, BT_BUILD_NUMBER_PATTERN, BT_CHECKOUT_DIR, BT_CHECKOUT_MODE, BT_CLEAN_BUILD, BT_EXCLUDE_DEFAULT_BRANCH_CHANGES, BT_EXECUTION_TIMEOUT, BT_FAIL_IF_TESTS_FAIL, BT_FAIL_ON_ANY_ERROR_MESSAGE, BT_FAIL_ON_EXIT_CODE, BT_FAIL_ON_OOME_OR_CRASH, BT_HANGING_BUILDS_DETECTION_ENABLED, BT_MAX_RUNNING_BUILDS, BT_SHOW_DEPS_CHANGES, DEFAULT_BUILD_NUMBER_PATTERN, DEFAULT_VCS_LABELING_BRANCH_FILTER, VCS_LABELING_BRANCH_FILTER
DEFAULT_LABEL_PATTERN
Modifier and Type | Method and Description |
---|---|
void |
applyRunnersOrder(java.lang.String[] ids)
Changes order of build runners in this template and in all of the inherited build configurations.
|
boolean |
belongsTo(SProject project)
Returns true if the specified project or some of its subprojects (not only direct) contains this build configuration template.
|
java.lang.String |
getDescription() |
java.lang.String |
getId()
Returns the internal identifier (that is used inside the database).
|
int |
getNumberOfUsages()
Returns total number of this template usages (without permissions filtering) in build configurations
|
int |
getNumberOfUsagesAsDefaultTemplate()
Returns total number of projects (without permissions filtering) using this template as a default template
|
SProject |
getParentProject()
Deprecated.
use
getProject() |
java.lang.String |
getParentProjectId()
Deprecated.
use
getProjectId() |
SProject |
getProject()
Returns project to which this template belongs
|
java.lang.String |
getProjectId()
Returns internal id of the project to which this template belongs
|
java.lang.String |
getReadOnlyReason() |
java.util.Collection<SBuildType> |
getUsages()
Returns collection of build configurations attached to this template.
|
java.util.Collection<SProject> |
getUsagesAsDefaultTemplate()
Returns collection of projects where this template is used as a default template.
|
boolean |
isAccessibleFrom(SProject project)
Returns true if this template is accessible from specified project, i.e.
|
boolean |
isReadOnly() |
void |
moveToProject(ConfigAction cause,
SProject target)
Moves this template to the specified project.
|
void |
moveToProject(SProject target)
Moves this template to the specified project.
|
void |
persist()
Persist this template settings, should be called after settings modifications to
preserve template state.
|
void |
setDescription(java.lang.String description)
Sets template description
|
getConfigurationFile, getExternalId, getFullName, getInternalId, getName, setExternalId, setExternalId, setName
getConfigId, getConfigurationFile, getParent, getVersion, markPersisted, persist, remove, schedulePersisting, schedulePersisting
addArtifactDependency, addBuildFeature, addBuildFeature, addBuildParameter, addBuildRunner, addBuildRunner, addBuildTrigger, addBuildTrigger, addConfigParameter, addRequirement, addVcsRoot, containsOwnVcsRoot, containsVcsRoot, findBuildFeatureById, findBuildRunnerById, findBuildRunnerByType, findRunnerParameter, findTriggerById, getArtifactDependencies, getArtifactPaths, getBuildFeatureRequirements, getBuildFeatures, getBuildFeaturesOfType, getBuildNumberPattern, getBuildParameter, getBuildParameters, getBuildParametersCollection, getBuildRunners, getBuildTriggersCollection, getCheckoutDirectory, getCheckoutRules, getCheckoutType, getConfigParameters, getConfigParametersCollection, getImplicitRequirements, getRequirements, getRunnerConditions, getRunnersOrder, getRunnerTypes, getRunTypeRequirements, getTemplate, getTemplateId, getTemplateIds, getTemplates, getTypedOption, getUndefinedParameters, getVcsRootEntries, getVcsRoots, isCompositeBuildType, isDeployment, isEnabled, isTemplateAccessible, isTemplateBased, persist, removeAllBuildRunners, removeArtifactDependency, removeBuildFeature, removeBuildParameter, removeBuildRunner, removeBuildTrigger, removeConfigParameter, removeRequirement, removeRequirement, removeVcsRoot, replaceInValues, replaceInValues, resetRunnersOrder, setArtifactDependencies, setArtifactPaths, setBuildNumberPattern, setCheckoutDirectory, setCheckoutRules, setCheckoutType, setEnabled, textValueMatches, updateBuildFeature, updateBuildRunner, updateBuildTrigger
getChangedOptions, getDeclaredOption, getOption, getOptionDefaultValue, getOptions, getOwnOptions, setOption
getInheritedParametersCollection, getOwnParameter, getOwnParameters, getOwnParametersCollection, getOwnParametersWithoutInheritedSpec, getParameters, getParametersCollection
addParameter, removeParameter
getParameter, getParameterValue
getLabelingRoots, getLabelingType, getLabelPattern
getAgentCompatibility, getCompatibilityMap, getCompatibleAgents
getParametersProvider, getValueResolver
getChildDependencies, intersectsWith
addDependency, getDependencies, removeDependency
@NotNull java.lang.String getId()
BuildTypeIdentity.getExternalId()
@NotNull java.lang.String getDescription()
void setDescription(@NotNull java.lang.String description)
description
- template descriptionvoid persist()
persist
in interface BuildTypeSettings
persist
in interface SPersistentEntity
java.util.Collection<SBuildType> getUsages()
java.util.Collection<SProject> getUsagesAsDefaultTemplate()
int getNumberOfUsages()
int getNumberOfUsagesAsDefaultTemplate()
@NotNull @Deprecated SProject getParentProject()
getProject()
@NotNull @Deprecated java.lang.String getParentProjectId()
getProjectId()
@NotNull SProject getProject()
getProject
in interface BuildTypeIdentity
getProject
in interface BuildTypeSettings
@NotNull java.lang.String getProjectId()
void moveToProject(@NotNull SProject target) throws InvalidVcsRootScopeException, TemplateBecomesInaccessibleException
target
- target projectInvalidVcsRootScopeException
- if VCS roots used by this template will not be accessible in the target projectTemplateBecomesInaccessibleException
- if template is used by configurations and won't be available for them if it is moved to target projectvoid moveToProject(@NotNull ConfigAction cause, @NotNull SProject target) throws InvalidVcsRootScopeException, TemplateBecomesInaccessibleException
cause
- config action caused the changetarget
- target projectInvalidVcsRootScopeException
- if VCS roots used by this template will not be accessible in the target projectTemplateBecomesInaccessibleException
- if template is used by configurations and won't be available for them if it is moved to target projectvoid applyRunnersOrder(@NotNull java.lang.String[] ids)
applyRunnersOrder
in interface BuildTypeSettings
ids
- runner identifiersboolean belongsTo(@NotNull SProject project)
belongsTo
in interface BuildTypeIdentity
project
- projectboolean isAccessibleFrom(@NotNull SProject project)
project
- project to checkboolean isReadOnly()
@Nullable java.lang.String getReadOnlyReason()