Class Project
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
com.atlassian.bamboo.specs.api.builders.RootEntityPropertiesBuilder<ProjectProperties>
com.atlassian.bamboo.specs.api.builders.project.Project
Represents Bamboo project.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ProjectProperties
build()
description
(@Nullable String description) Sets a project description.getKey()
Returns project's key.getName()
Returns project's name.getOid()
Returns project's oid.Entity type and id representation that is shown to human.Entity type that is shown to human.Sets a project key.Sets a project key.Sets a project name.Sets a project's oid.Sets a project's oid.repositories
(@NotNull VcsRepository<?, ?>... repositories) Adds project repositories.sharedCredentials
(@NotNull SharedCredentials<?, ?>... credentials) Adds project shared credentials.Adds project variables.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
Project
Specifies Bamboo project.- Throws:
PropertiesValidationException
-
-
Method Details
-
name
Sets a project name.- Throws:
PropertiesValidationException
-
key
Sets a project key. In the absence of oid key serves as project identifier.- Throws:
PropertiesValidationException
-
key
Sets a project key. In the absence of oid key serves as project identifier.- Throws:
PropertiesValidationException
-
description
public Project description(@Nullable @Nullable String description) throws PropertiesValidationException Sets a project description.- Throws:
PropertiesValidationException
-
oid
Sets a project's oid.- Throws:
PropertiesValidationException
-
oid
Sets a project's oid.- Throws:
PropertiesValidationException
-
variables
Adds project variables. -
repositories
Adds project repositories. This method will create new project level repository definitions. -
getOid
Returns project's oid.- Throws:
IllegalStateException
- if oid is undefined
-
getKey
Returns project's key.- Throws:
IllegalStateException
- if key is undefined
-
getName
Returns project's name. -
build
- Specified by:
build
in classEntityPropertiesBuilder<ProjectProperties>
- Throws:
PropertiesValidationException
-
humanReadableType
Description copied from class:RootEntityPropertiesBuilder
Entity type that is shown to human.- Specified by:
humanReadableType
in classRootEntityPropertiesBuilder<ProjectProperties>
-
humanReadableId
Description copied from class:RootEntityPropertiesBuilder
Entity type and id representation that is shown to human.- Specified by:
humanReadableId
in classRootEntityPropertiesBuilder<ProjectProperties>
-