|
||||||||||
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,
int trigger,
ScmResult scmResult,
int projectGroupId)
Build the project using the specified build definition. |
void |
buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
int trigger,
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()
|
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)
|
void |
checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition)
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. |
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. |
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 |
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 |
isProjectCurrentlyBeingCheckedOut(int projectId)
Checks whether project is currently being checked out. |
boolean |
isProjectCurrentlyPreparingBuild(int projectId)
Checks whether project is currently preparing build |
boolean |
isProjectInAnyCurrentBuild(int projectId)
Checks whether the project is currently being built. |
void |
prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
int trigger,
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,
int trigger,
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, int trigger, Map<Integer,ScmResult> scmResultMap, int projectGroupId) throws BuildManagerException
projects
- projectsBuildDefinitionsMap
- trigger
- scmResultMap
- TODOprojectGroupId
-
BuildManagerException
void buildProject(int projectId, BuildDefinition buildDefinition, String projectName, int trigger, ScmResult scmResult, int projectGroupId) throws BuildManagerException
projectId
- buildDefinition
- projectName
- trigger
- scmResult
- TODOprojectGroupId
-
BuildManagerException
void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap, int trigger, int projectGroupId, String projectGroupName, String scmRootAddress, int scmRootId) throws BuildManagerException
projectsBuildDefinitionsMap
- trigger
- projectGroupId
- TODOscmRootAddress
- TODO
BuildManagerException
void checkoutProject(int projectId, String projectName, File workingDirectory, String scmUsername, String scmPassword, BuildDefinition defaultBuildDefinition) throws BuildManagerException
projectId
- projectName
- workingDirectory
- scmUsername
- scmPassword
- defaultBuildDefinition
-
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
void removeProjectFromBuildQueue(int projectId) throws BuildManagerException
projectId
-
BuildManagerException
void removeProjectFromBuildQueue(int projectId, int buildDefinitionId, int trigger, String projectName, int projectGroupId) throws BuildManagerException
projectId
- buildDefinitionId
- trigger
- projectName
- projectGroupId
-
BuildManagerException
void removeProjectsFromBuildQueue(int[] projectIds)
projectIds
- void removeProjectsFromBuildQueueWithHashcodes(int[] hascodes) throws BuildManagerException
hascodes
-
BuildManagerException
void removeProjectFromCheckoutQueue(int projectId) throws BuildManagerException
projectId
-
BuildManagerException
void 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
- TODOvoid 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 isProjectInAnyCurrentBuild(int projectId) throws BuildManagerException
projectId
-
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
BuildManagerException
boolean 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
PrepareBuildProjectsTask getCurrentProjectInPrepareBuild() throws BuildManagerException
BuildManagerException
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 |