|
|||||||||
| 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,
java.lang.String runnerType,
int maximumNumberOfBuilds,
BuildTypeDescriptor.CheckoutType checkoutType)
Creates a new build configuration |
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 |
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.io.File |
getConfigDirectory()
Returns this project configuration directory, i.e. a directory where this project configuration is stored. |
java.io.File |
getConfigurationFile()
Returns this project configuration file, named "project-config.xml" in project configuration directory |
java.util.List<User> |
getPotentiallyResponsibleUsers()
Returns the list of users who potentially can be responsible for configurations of this project (users who has TAKE_RESPONSIBILITY permission) |
java.util.List<SVcsRoot> |
getVcsRoots()
Returns all VCS roots used by build configurations of this project. |
boolean |
hasBuildTypes()
Returns true if this project contains at least one build configuration |
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 |
setDescription(java.lang.String description)
Sets this project description |
void |
setName(java.lang.String name)
Renames project |
void |
updateProjectInTransaction(SProject.ProjectUpdater updater)
Runs the specified updater in the project update transaction. |
| 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 |
| 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.io.File getConfigDirectory()
@NotNull java.io.File getConfigurationFile()
@NotNull java.io.File getArtifactsDirectory()
@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
SBuildType createBuildType(SBuildType originalBuildType,
java.lang.String newName,
CopyOptions copyOptions)
throws MaxNumberOfBuildTypesReachedException
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
@NotNull
SBuildType createBuildType(SBuildType originalBuildType,
java.lang.String newName,
boolean copyVcsRoots,
boolean changeScopeOfLocalVcsRoots)
throws MaxNumberOfBuildTypesReachedException
createBuildType(SBuildType, String, CopyOptions)
MaxNumberOfBuildTypesReachedException
@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
updater - updater
PersistFailedException - if project persistence failedboolean isInModel()
java.util.List<User> getPotentiallyResponsibleUsers()
void persist()
throws PersistFailedException
PersistFailedException - if project persisting failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||