|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BuildsManager
BuildsManager. All builds whether forced or triggered will go through (or have to be added through) a builds manager.
| Method Summary | |
|---|---|
void |
addOverallBuildQueue(BuildQueue buildQueue)
Add an overall build queue. |
void |
buildProject(int projectId,
BuildDefinition buildDefinition,
String projectName,
BuildTrigger buildTrigger,
ScmResult scmResult,
int projectGroupId)
Build the project using the specified build definition. |
void |
buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
Map<Integer,ScmResult> scmResultMap,
int projectGroupId)
Build projects using their corresponding build definitions. |
boolean |
cancelAllBuilds()
Cancels all the builds in all the overall queues. |
boolean |
cancelAllCheckouts()
|
boolean |
cancelAllPrepareBuilds()
Cancels all the prepare builds in all overall queues |
boolean |
cancelBuild(int projectId)
Cancels the specified project's build. |
boolean |
cancelBuildInQueue(int buildQueueId)
Cancels the current build on the specified overall queue. |
boolean |
cancelCheckout(int projectId)
|
boolean |
cancelPrepareBuild(int projectId)
Cancels the specified project prepare build |
boolean |
cancelPrepareBuild(int projectGroupId,
int scmRootId)
Cancels the specified project group prepare build |
void |
checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmRootUrl,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition,
List<Project> subProjects)
Adds the project to the checkout queue of the overall build queue with the least amount of tasks queued. |
Map<String,BuildProjectTask> |
getCurrentBuilds()
Returns all the build tasks currently being executed. |
Map<String,CheckOutTask> |
getCurrentCheckouts()
Returns all the checkout tasks currently being executed. |
Map<String,PrepareBuildProjectsTask> |
getCurrentProjectInPrepareBuild()
Return currently preparing build project. |
Map<String,List<BuildProjectTask>> |
getProjectsInBuildQueues()
Returns all the overall build queues together with a list of the build tasks in it's build queue. |
Map<String,List<CheckOutTask>> |
getProjectsInCheckoutQueues()
Returns all the overall build queues together with a list of checkout tasks in it's checkout queue. |
Map<String,List<PrepareBuildProjectsTask>> |
getProjectsInPrepareBuildQueue()
Return all projects in prepare build queue. |
boolean |
isAnyProjectCurrentlyBeingCheckedOut(int[] projectIds)
Checks if at least one of the projects is currently being checked out. |
boolean |
isAnyProjectCurrentlyBuilding(int[] projectIds)
Checks if at least one of the projects is currently building. |
boolean |
isAnyProjectCurrentlyPreparingBuild(int[] projectIds)
Checks if at least one of the projects is currently preparing build |
boolean |
isBuildInProgress()
Checks whether a build is in progress. |
boolean |
isInAnyBuildQueue(int projectId)
Checks whether the project build is queued. |
boolean |
isInAnyBuildQueue(int projectId,
int buildDefinitionId)
Checks whether the project build using the specified build definition is queued. |
boolean |
isInAnyCheckoutQueue(int projectId)
Checks whether the project checkout is already queued. |
boolean |
isInPrepareBuildQueue(int projectId)
Checks whether the project is already in the prepare-build queue. |
boolean |
isInPrepareBuildQueue(int projectGroupId,
int scmRootId)
Checks where the project group is already in the prepare-build queue |
boolean |
isProjectCurrentlyBeingCheckedOut(int projectId)
Checks whether project is currently being checked out. |
boolean |
isProjectCurrentlyPreparingBuild(int projectId)
Checks whether project is currently preparing build |
boolean |
isProjectGroupCurrentlyPreparingBuild(int projectGroupId,
int scmRootId)
Checks whether project group is currently preparing build |
boolean |
isProjectInAnyCurrentBuild(int projectId)
Checks whether the project is currently being built. |
void |
prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
int projectGroupId,
String projectGroupName,
String scmRootAddress,
int scmRootId)
Adds the projects in the prepare-build-queue. |
void |
removeOverallBuildQueue(int overallBuildQueueId)
Remove an overall build queue. |
void |
removeProjectFromBuildQueue(int projectId)
Removes the project from the build queue. |
void |
removeProjectFromBuildQueue(int projectId,
int buildDefinitionId,
BuildTrigger buildTrigger,
String projectName,
int projectGroupId)
Removes the project built using the specified build definition from the build queue. |
void |
removeProjectFromCheckoutQueue(int projectId)
Removes the project from the checkout queue. |
boolean |
removeProjectFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
Remove a project from a prepare build queue. |
boolean |
removeProjectGroupFromPrepareBuildQueue(int projectGroupId,
String scmRootAddress)
|
void |
removeProjectsFromBuildQueue(int[] projectIds)
Removes the specified projects from their build queues. |
void |
removeProjectsFromBuildQueueWithHashcodes(int[] hascodes)
Removes a set of projects using the specified hashcodes from the build queues. |
void |
removeProjectsFromCheckoutQueue(int[] projectIds)
Removes the specified projects from their checkout queues. |
void |
removeProjectsFromCheckoutQueueWithHashcodes(int[] hashcodes)
Removes a set of projects using the specified hashcodes from the checkout queues. |
void |
removeProjectsFromPrepareBuildQueueWithHashCodes(int[] hashCodes)
Removes a set of projects using the specified hashcodes from the prepare build queues. |
| Method Detail |
|---|
void buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
Map<Integer,ScmResult> scmResultMap,
int projectGroupId)
throws BuildManagerException
projects - projectsBuildDefinitionsMap - buildTrigger - scmResultMap - TODOprojectGroupId -
BuildManagerException
void buildProject(int projectId,
BuildDefinition buildDefinition,
String projectName,
BuildTrigger buildTrigger,
ScmResult scmResult,
int projectGroupId)
throws BuildManagerException
projectId - buildDefinition - projectName - buildTrigger - scmResult - TODOprojectGroupId -
BuildManagerException
void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
int projectGroupId,
String projectGroupName,
String scmRootAddress,
int scmRootId)
throws BuildManagerException
projectsBuildDefinitionsMap - buildTrigger - projectGroupId - TODOscmRootAddress - TODOscmRootId -
BuildManagerException
void checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmRootUrl,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition,
List<Project> subProjects)
throws BuildManagerException
projectId - projectName - workingDirectory - scmRootUrl - TODOscmUsername - scmPassword - defaultBuildDefinition - subProjects - TODO
BuildManagerException
boolean cancelBuild(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean cancelAllBuilds()
throws BuildManagerException
BuildManagerException
boolean cancelBuildInQueue(int buildQueueId)
throws BuildManagerException
buildQueueId -
BuildManagerException
boolean cancelCheckout(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean cancelAllCheckouts()
throws BuildManagerException
BuildManagerException
boolean cancelAllPrepareBuilds()
throws BuildManagerException
BuildManagerException
boolean cancelPrepareBuild(int projectGroupId,
int scmRootId)
throws BuildManagerException
projectGroupId - scmRootId -
BuildManagerException
boolean cancelPrepareBuild(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
void removeProjectFromBuildQueue(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
void removeProjectFromBuildQueue(int projectId,
int buildDefinitionId,
BuildTrigger buildTrigger,
String projectName,
int projectGroupId)
throws BuildManagerException
projectId - buildDefinitionId - buildTrigger - projectName - projectGroupId -
BuildManagerExceptionvoid removeProjectsFromBuildQueue(int[] projectIds)
projectIds -
void removeProjectsFromBuildQueueWithHashcodes(int[] hascodes)
throws BuildManagerException
hascodes -
BuildManagerException
void removeProjectFromCheckoutQueue(int projectId)
throws BuildManagerException
projectId -
BuildManagerExceptionvoid removeProjectsFromCheckoutQueue(int[] projectIds)
projectIds -
void removeProjectsFromCheckoutQueueWithHashcodes(int[] hashcodes)
throws BuildManagerException
hashcodes -
BuildManagerException
boolean removeProjectGroupFromPrepareBuildQueue(int projectGroupId,
String scmRootAddress)
throws BuildManagerException
BuildManagerException
void addOverallBuildQueue(BuildQueue buildQueue)
throws BuildManagerException
buildQueue -
BuildManagerException - TODO
void removeOverallBuildQueue(int overallBuildQueueId)
throws BuildManagerException
overallBuildQueueId -
BuildManagerException
boolean isInAnyBuildQueue(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isInAnyBuildQueue(int projectId,
int buildDefinitionId)
throws BuildManagerException
projectId - buildDefinitionId -
BuildManagerException
boolean isInAnyCheckoutQueue(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isAnyProjectCurrentlyBeingCheckedOut(int[] projectIds)
throws BuildManagerException
projectIds -
BuildManagerException
boolean isInPrepareBuildQueue(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isInPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws BuildManagerException
projectGroupId - scmRootId -
BuildManagerException
boolean isProjectInAnyCurrentBuild(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isAnyProjectCurrentlyPreparingBuild(int[] projectIds)
throws BuildManagerException
projectIds -
BuildManagerException
Map<String,BuildProjectTask> getCurrentBuilds()
throws BuildManagerException
BuildManagerException
Map<String,CheckOutTask> getCurrentCheckouts()
throws BuildManagerException
BuildManagerException
Map<String,List<BuildProjectTask>> getProjectsInBuildQueues()
throws BuildManagerException
BuildManagerException
Map<String,List<CheckOutTask>> getProjectsInCheckoutQueues()
throws BuildManagerException
BuildManagerExceptionboolean isBuildInProgress()
boolean isAnyProjectCurrentlyBuilding(int[] projectIds)
throws BuildManagerException
projectIds -
BuildManagerException
boolean isProjectCurrentlyBeingCheckedOut(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isProjectCurrentlyPreparingBuild(int projectId)
throws BuildManagerException
projectId -
BuildManagerException
boolean isProjectGroupCurrentlyPreparingBuild(int projectGroupId,
int scmRootId)
throws BuildManagerException
projectGroupId - scmRootId -
BuildManagerException
Map<String,PrepareBuildProjectsTask> getCurrentProjectInPrepareBuild()
throws BuildManagerException
BuildManagerException
Map<String,List<PrepareBuildProjectsTask>> getProjectsInPrepareBuildQueue()
throws BuildManagerException
BuildManagerException
boolean removeProjectFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws BuildManagerException
projectGroupId - scmRootId -
BuildManagerException
void removeProjectsFromPrepareBuildQueueWithHashCodes(int[] hashCodes)
throws BuildManagerException
hashcodes -
BuildManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||