|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SProject
Represents a server side project
| Nested Class Summary | |
|---|---|
static interface |
SProject.ProjectUpdater
Object which updates some project aspect. |
| Method Summary | |
|---|---|
boolean |
containsBuildType(java.lang.String buildTypeId)
Returns true if this project contains build configuration with specified id |
SBuildType |
createBuildType(SBuildType originalBuildType,
java.lang.String newName,
boolean copyVcsRoots,
boolean changeScopeOfLocalVcsRoots)
Deprecated. see createBuildType(SBuildType, String, CopyOptions) |
SBuildType |
createBuildType(SBuildType originalBuildType,
java.lang.String newName,
CopyOptions copyOptions)
Creates new build configuration on the base of the specified original build configuration. |
SBuildType |
createBuildType(java.lang.String name)
Creates new build configuration with given name |
SBuildType |
createBuildType(java.lang.String name,
java.lang.String runnerType,
int maximumNumberOfBuilds,
BuildTypeDescriptor.CheckoutType checkoutType)
Creates a new build configuration |
SBuildType |
createBuildTypeFromTemplate(BuildTypeTemplate template,
java.lang.String name,
CopyOptions copyOptions)
Creates build configuration on the base of specified template. |
BuildTypeTemplate |
createBuildTypeTemplate(BuildTypeTemplate originalTemplate,
java.lang.String newName,
CopyOptions copyOptions)
Creates new template by copying settings from the original one. |
BuildTypeTemplate |
createBuildTypeTemplate(SBuildType originalBuildType,
java.lang.String name,
CopyOptions copyOptions)
Creates new template by copying settings from the specified build type. |
BuildTypeTemplate |
createBuildTypeTemplate(java.lang.String name)
Creates new build configuration template. |
SBuildType |
findBuildTypeById(java.lang.String buildTypeId)
Searches for a build configuration in this project by the specified id |
SBuildType |
findBuildTypeByName(java.lang.String name)
Searches for a build configuration in this project by the specified name |
BuildTypeTemplate |
findBuildTypeTemplateById(java.lang.String id)
Searches for build type template by given id in this project |
BuildTypeTemplate |
findBuildTypeTemplateByName(java.lang.String name)
Searches for a template with specified name in this project |
java.util.Date |
getArchivingTime()
Returns the date when the project was archived. |
User |
getArchivingUser()
Returns the user who archived the project. |
java.io.File |
getArtifactsDirectory()
Returns directory containing all of the project artifacts. |
java.util.List<SBuildType> |
getBuildTypes()
Returns all of the build configurations containing in this project |
java.util.List<BuildTypeTemplate> |
getBuildTypeTemplates()
Returns collection of build configuration templates sorted by name |
java.io.File |
getConfigDirectory()
Returns this project configuration directory, i.e. |
java.io.File |
getConfigurationFile()
Returns this project configuration file, named "project-config.xml" in project configuration directory |
java.lang.String |
getExtendedName()
Returns the name of the project with additional note if the project is archived, i.e. |
java.util.List<User> |
getPotentiallyResponsibleUsers()
Returns the list of users who potentially can be responsible for failures in this project. |
java.util.List<VcsRootInstance> |
getVcsRootInstances()
|
java.util.List<SVcsRoot> |
getVcsRoots()
Returns all VCS roots used by build configurations or templates in this project. |
boolean |
hasBuildTypes()
Returns true if this project contains at least one build configuration |
boolean |
isArchived()
Returns true if the project is archived |
boolean |
isInModel()
Return true if this project is attached to the TeamCity project model. |
void |
persist()
Persists this project configuration on disk. |
void |
removeBuildType(java.lang.String buildTypeId)
Removes build configuration with specified id |
void |
removeBuildTypes()
Removes all of the build configurations stored in this project |
void |
removeBuildTypeTemplate(java.lang.String id)
Removes build configuration template |
void |
setArchived(boolean archived,
User user)
Sets project's archived flag |
void |
setDescription(java.lang.String description)
Sets this project description |
void |
setName(java.lang.String name)
Renames project |
void |
updateProjectInTransaction(SProject.ProjectUpdater updater)
Deprecated. use persist() |
| Methods inherited from interface jetbrains.buildServer.XmlExternalizable |
|---|
writeTo |
| Methods inherited from interface jetbrains.buildServer.BuildProject |
|---|
getDescription, getName, getProjectId, getStatus |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface jetbrains.buildServer.serverSide.UserParametersHolder |
|---|
addParameter, getParameters, getParametersCollection, removeParameter |
| Method Detail |
|---|
void setName(@NotNull
java.lang.String name)
name - new project name
DuplicateProjectNameException - if there is another project with same name
ProjectRenamingFailedException - if an error prevents from project renaming
void setDescription(@Nullable
java.lang.String description)
description - new project description@NotNull java.util.List<SVcsRoot> getVcsRoots()
getVcsRoots in interface BuildProject@NotNull java.util.List<VcsRootInstance> getVcsRootInstances()
@NotNull java.io.File getConfigDirectory()
@NotNull java.io.File getConfigurationFile()
@NotNull java.io.File getArtifactsDirectory()
@NotNull
SBuildType createBuildType(@NotNull
java.lang.String name)
throws DuplicateBuildTypeNameException,
MaxNumberOfBuildTypesReachedException
name - name of the build configuration
DuplicateBuildTypeNameException - if build configuration with such name already exists in this project
MaxNumberOfBuildTypesReachedException - if maximum number of build configurations is reached
@NotNull
SBuildType createBuildType(@NotNull
java.lang.String name,
@NotNull
java.lang.String runnerType,
int maximumNumberOfBuilds,
BuildTypeDescriptor.CheckoutType checkoutType)
throws DuplicateBuildTypeNameException,
MaxNumberOfBuildTypesReachedException
name - name of the build configurationrunnerType - type of the runnermaximumNumberOfBuilds - maximum number of buildscheckoutType - type of the checkout
DuplicateBuildTypeNameException - if build configuration with such name already exists in this project
MaxNumberOfBuildTypesReachedException - if maximum number of build configurations is reached
@NotNull
BuildTypeTemplate createBuildTypeTemplate(@NotNull
java.lang.String name)
throws DuplicateTemplateNameException
name - name of the template
DuplicateTemplateNameException - thrown if template with such name already exists
@NotNull
BuildTypeTemplate createBuildTypeTemplate(@NotNull
BuildTypeTemplate originalTemplate,
@NotNull
java.lang.String newName,
@NotNull
CopyOptions copyOptions)
throws InvalidVcsRootScopeException
originalTemplate - original templatenewName - new template namecopyOptions - options to control copy operation
InvalidVcsRootScopeException - if a VCS root cannot be attached to template
@NotNull
BuildTypeTemplate createBuildTypeTemplate(@NotNull
SBuildType originalBuildType,
@NotNull
java.lang.String name,
@NotNull
CopyOptions copyOptions)
throws InvalidVcsRootScopeException
originalBuildType - original templatename - new template namecopyOptions - options to control copy operation
InvalidVcsRootScopeException - if a VCS root cannot be attached to template
@NotNull
SBuildType createBuildType(@NotNull
SBuildType originalBuildType,
@NotNull
java.lang.String newName,
@NotNull
CopyOptions copyOptions)
throws MaxNumberOfBuildTypesReachedException,
InvalidVcsRootScopeException
originalBuildType - build configuration to copynewName - name to use for new configuration. If there exists configuration with same name in the target project
then " (1)", " (2)", ... suffix will be added to the specified name.copyOptions - additional options
MaxNumberOfBuildTypesReachedException - if maximum number of build configurations is reached
InvalidVcsRootScopeException - if a VCS root cannot be attached to build configuration
@NotNull
SBuildType createBuildTypeFromTemplate(@NotNull
BuildTypeTemplate template,
@NotNull
java.lang.String name,
@NotNull
CopyOptions copyOptions)
throws MaxNumberOfBuildTypesReachedException,
InvalidVcsRootScopeException
template - build configuration templatename - name to use for build configuration. If there exists configuration with same name in the target project
then " (1)", " (2)", ... suffix will be added to the specified name.copyOptions - options to control copy operation
MaxNumberOfBuildTypesReachedException - if maximum number of build configurations is reached
InvalidVcsRootScopeException - if a VCS root cannot be attached to build configuration
@NotNull
SBuildType createBuildType(SBuildType originalBuildType,
java.lang.String newName,
boolean copyVcsRoots,
boolean changeScopeOfLocalVcsRoots)
throws MaxNumberOfBuildTypesReachedException,
InvalidVcsRootScopeException
createBuildType(SBuildType, String, CopyOptions)
MaxNumberOfBuildTypesReachedException
InvalidVcsRootScopeException
@Nullable
SBuildType findBuildTypeByName(@NotNull
java.lang.String name)
name - name of the build configuration
@Nullable
SBuildType findBuildTypeById(@Nullable
java.lang.String buildTypeId)
buildTypeId - id of the build configuration
void removeBuildTypes()
void removeBuildType(java.lang.String buildTypeId)
buildTypeId - id of the build configurationjava.util.List<SBuildType> getBuildTypes()
getBuildTypes in interface BuildProjectboolean hasBuildTypes()
boolean containsBuildType(@NotNull
java.lang.String buildTypeId)
buildTypeId - id of the build configuration
void updateProjectInTransaction(@NotNull
SProject.ProjectUpdater updater)
throws PersistFailedException
persist()
updater - updater
PersistFailedException - if project persistence failedboolean isInModel()
java.util.List<User> getPotentiallyResponsibleUsers()
void persist()
throws PersistFailedException
PersistFailedException - if project persisting failedboolean isArchived()
void setArchived(boolean archived,
@Nullable
User user)
archived - is the project archiveduser - the user the performs the action@Nullable User getArchivingUser()
@Nullable java.util.Date getArchivingTime()
@NotNull java.lang.String getExtendedName()
@NotNull java.util.List<BuildTypeTemplate> getBuildTypeTemplates()
@Nullable
BuildTypeTemplate findBuildTypeTemplateById(@NotNull
java.lang.String id)
id - id of template
@Nullable
BuildTypeTemplate findBuildTypeTemplateByName(@NotNull
java.lang.String name)
name - name of the template
void removeBuildTypeTemplate(@NotNull
java.lang.String id)
throws TemplateCannotBeRemovedException
id - id of the template
TemplateCannotBeRemovedException - if template cannot be deleted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||