|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildManager
Manager to handle all build related activities
Method Summary | |
---|---|
void |
addBuildResults(Build build,
BuildResults buildResults)
|
void |
createBuild(Build build,
BuildConfiguration buildConfiguration,
HibernateAcl acl)
Save a new build object with the passed buildConfiguration |
void |
deleteBuild(java.lang.String buildKey)
Removes the build from system |
boolean |
exists(java.lang.String key)
Returns true if build exists with the provided key (eg. |
java.util.Set<Build> |
filterFavouritedBuilds(java.util.Collection<Build> builds,
com.atlassian.user.User user)
Return a set of Build s that are a subset of the given Build s collection that are favourited by the User |
java.util.Collection<Build> |
getAllBuilds()
Returns a collection of all Build objects |
java.util.Collection<Build> |
getAllBuildsForClone()
|
java.util.Collection<Build> |
getAllBuildsForEdit()
|
java.util.Collection<Build> |
getAllBuildsForRead()
|
Build |
getBuildById(long id)
Returns the build given the id |
Build |
getBuildByKey(java.lang.String key)
Returns the build given a key |
Build |
getBuildByProjectAndName(java.lang.String projectKey,
java.lang.String buildName)
|
BuildResults |
getBuildResults(Build build,
java.lang.Integer buildNumber)
Return BuildResults for the given Build and buildNumber |
BuildResults |
getBuildResults(java.lang.String planKey,
java.lang.Integer buildNumber)
Return BuildResults for the given planKey and buildNumber |
java.util.Collection<Build> |
getBuildsByProjectForRead(Project project)
This is the manager equivalent of a project.getBuilds. |
java.util.Collection<Build> |
getBuildsForDeletion()
|
java.util.Collection<Build> |
getFavouriteBuildsByProjectForRead(Project project,
com.atlassian.user.User user)
Deprecated. |
java.util.Collection<Build> |
getFavouriteBuildsForRead(com.atlassian.user.User user)
|
int |
getPlanCount()
How many plans currently exist |
java.util.Map<Project,java.util.Collection<Build>> |
getProjectBuilds(boolean includeEmptyProjects)
Return a map of Build collections which belong to a Project |
boolean |
isAllowBuilding(java.lang.String planKey)
Checks if a particular build is allowed to be built. |
boolean |
isBuildingSuspended()
Checks whether or not bamboo is currently suspended from building due to license reasons. |
boolean |
isExistingBuildKey(java.lang.String projectKey,
java.lang.String buildKey)
Returns true if the build key already exists within the given project key |
boolean |
isExistingBuildName(java.lang.String projectKey,
java.lang.String buildName)
Returns true if the build name already exists within the given project key |
boolean |
isPlanCreationAllowed()
Check whether or not a plan can be created or not (based on licensing etc) USE SPARINGLY! |
boolean |
recheckBuildingSuspended()
Force the build manager to double check if building should be suspended or not. |
java.util.Collection<Build> |
retreiveAllBuilds()
|
java.lang.String |
revertVcsRevisionKey(java.lang.String buildKey,
java.lang.String revisionForBuild,
java.lang.String previousRevision)
Revert lastVcsRevisionKey in build based on previous build revision contained in BuildContext. |
void |
saveBuild(Build build)
Persists a build |
void |
saveSuspendBuild(java.lang.String buildKey,
boolean setSuspendBuild)
Persists a build for enable/disable |
void |
updateNames(java.lang.String projectName,
java.lang.String buildName,
Build build)
Updates project and plan names. |
void |
updateNamesAndDescription(java.lang.String projectName,
java.lang.String buildName,
java.lang.String description,
Build build)
Updates project and plan names and plan description. |
java.lang.String |
updateVcsRevisionKey(BuildContext buildContext)
Updates lastVcsRevisionKey in build based on revision contained in BuildContext |
Method Detail |
---|
@Nullable Build getBuildByKey(java.lang.String key)
key
- - full key of the build. eg. BAM-MAIN null safe
Build
if the key matches. Otherwise nullBuild getBuildById(long id)
id
-
Build
. null if not found.java.util.Collection<Build> getAllBuilds()
Build
objects
Collections.emptyList()
if none existsjava.util.Collection<Build> getAllBuildsForRead()
java.util.Collection<Build> retreiveAllBuilds()
java.util.Collection<Build> getAllBuildsForEdit()
java.util.Collection<Build> getAllBuildsForClone()
java.util.Collection<Build> getBuildsForDeletion()
java.util.Collection<Build> getFavouriteBuildsForRead(com.atlassian.user.User user)
@NotNull java.util.Set<Build> filterFavouritedBuilds(@NotNull java.util.Collection<Build> builds, @NotNull com.atlassian.user.User user)
Build
s that are a subset of the given Build
s collection that are favourited by the User
builds
- user
-
@NotNull java.util.Collection<Build> getFavouriteBuildsByProjectForRead(Project project, com.atlassian.user.User user)
Build
s that belong to Project
and @{link User}
project
- user
-
java.util.Collection<Build> getBuildsByProjectForRead(Project project)
project
-
boolean isExistingBuildName(java.lang.String projectKey, java.lang.String buildName)
projectKey
- (doesn't have to exist for this check)buildName
- to check
boolean isExistingBuildKey(java.lang.String projectKey, java.lang.String buildKey)
projectKey
- (doesn't have to exist for this check)buildKey
- to check
boolean exists(java.lang.String key)
key
-
boolean isPlanCreationAllowed()
boolean isBuildingSuspended()
boolean recheckBuildingSuspended()
int getPlanCount()
void createBuild(Build build, BuildConfiguration buildConfiguration, HibernateAcl acl) throws PlanCreationDeniedException
build
- @NotNullbuildConfiguration
- @NotNullacl
-
PlanCreationDeniedException
- if the plan can not be created due to licensing.void saveBuild(Build build)
build
- cannot be nullvoid saveSuspendBuild(java.lang.String buildKey, boolean setSuspendBuild)
buildKey
- of the build to be suspended/resumedsetSuspendBuild
- true if the build should be suspended, false if resumedvoid deleteBuild(@NotNull java.lang.String buildKey)
buildKey
- String name for buildvoid addBuildResults(Build build, BuildResults buildResults)
@Nullable BuildResults getBuildResults(Build build, java.lang.Integer buildNumber)
BuildResults
for the given Build
and buildNumber
build
- buildNumber
-
BuildResults getBuildResults(java.lang.String planKey, java.lang.Integer buildNumber)
BuildResults
for the given planKey and buildNumber
planKey
- buildNumber
-
Build getBuildByProjectAndName(java.lang.String projectKey, java.lang.String buildName)
void updateNames(java.lang.String projectName, java.lang.String buildName, Build build)
projectName
- new name of the projectbuildName
- new name of the planbuild
- build object to be modified and stored.void updateNamesAndDescription(java.lang.String projectName, java.lang.String buildName, @Nullable java.lang.String description, Build build)
projectName
- new name of the projectbuildName
- new name of the plandescription
- new plan descriptionbuild
- build object to be modified and stored.boolean isAllowBuilding(@NotNull java.lang.String planKey)
planKey
-
@NotNull java.util.Map<Project,java.util.Collection<Build>> getProjectBuilds(boolean includeEmptyProjects)
Build
collections which belong to a Project
includeEmptyProjects
- set to true if you want all of the projects regardless if they have any builds
java.lang.String updateVcsRevisionKey(@NotNull BuildContext buildContext)
buildContext
-
@Nullable java.lang.String revertVcsRevisionKey(@NotNull java.lang.String buildKey, @NotNull java.lang.String revisionForBuild, @Nullable java.lang.String previousRevision)
buildKey
- revisionForBuild
- previousRevision
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |