com.atlassian.bamboo.build.creation
Interface BuildPlanConstructor

All Known Implementing Classes:
BuildPlanConstructorImpl

Deprecated. since 2.7. This can only create Build objects and these are no longer supported. There is no direct replacement for this functionality but various implementation of the PlanCreationService may provide the required functionality

@Deprecated
@NotThreadSafe
public interface BuildPlanConstructor

A builder that will allow simple creation of Build objects on the server side. It does not support the createion of chains or jobs. It's not called a plan builder simply because there's already way too many things that builds in Bamboo.


Method Summary
 BuildPlanConstructor addNotificationRule(NotificationRule newRule)
          Deprecated. Adds a notification rule to the plan.
 BuildPlanConstructor existingProject(java.lang.String projectKey)
          Deprecated. The existing Project that the plan will belong to
 BuildPlanConstructor key(java.lang.String planKey)
          Deprecated. The Build component for the plan (e.g.
 BuildPlanConstructor name(java.lang.String planName)
          Deprecated. The name of the plan (not the project
 BuildPlanConstructor newProject(java.lang.String projectKey, java.lang.String projectName)
          Deprecated. Sets a new Project details that the Build will belong to
 BuildPlanConstructor setBuildConfigurationProperty(java.lang.String key, java.lang.String value)
          Deprecated. Adds any generic properties to the buildConfiguration for the plan you are currently creating
 BuildPlanConstructor setBuilder(Builder builder, java.lang.String label)
          Deprecated. Sets the builder on the plan, with the matching label
 BuildPlanConstructor setBuildStrategy(BuildStrategy buildStrategy)
          Deprecated. Sets the build strategy
 BuildPlanConstructor setRepository(Repository repository)
          Deprecated. Sets the repository on the plan
 BuildPlanConstructor setWebRepositoryViewer(WebRepositoryViewer webRepositoryViewer)
          Deprecated. Sets the web repository viewer on the plan
 BuildPlanConstructor suspendedFromBuilding(boolean suspendedFromBuilding)
          Deprecated. Set plan's suspendedFromBuilding flag
 PlanCreationBean toPlanCreationBean()
          Deprecated. Outputs a PlanCreationBean that can then be persisted
 

Method Detail

newProject

BuildPlanConstructor newProject(@NotNull
                                java.lang.String projectKey,
                                @NotNull
                                java.lang.String projectName)
Deprecated. 
Sets a new Project details that the Build will belong to

Parameters:
projectKey -
projectName -
Returns:

existingProject

BuildPlanConstructor existingProject(@NotNull
                                     java.lang.String projectKey)
Deprecated. 
The existing Project that the plan will belong to

Parameters:
projectKey -
Returns:

key

BuildPlanConstructor key(@NotNull
                         java.lang.String planKey)
Deprecated. 
The Build component for the plan (e.g. DEF, not BAM-DEF)

Parameters:
planKey -
Returns:

name

BuildPlanConstructor name(@NotNull
                          java.lang.String planName)
Deprecated. 
The name of the plan (not the project

Parameters:
planName -
Returns:

suspendedFromBuilding

BuildPlanConstructor suspendedFromBuilding(boolean suspendedFromBuilding)
Deprecated. 
Set plan's suspendedFromBuilding flag

Parameters:
suspendedFromBuilding - Value to set
Returns:
Plan's constructor

setRepository

BuildPlanConstructor setRepository(@NotNull
                                   Repository repository)
Deprecated. 
Sets the repository on the plan

Parameters:
repository -
Returns:

setWebRepositoryViewer

BuildPlanConstructor setWebRepositoryViewer(@NotNull
                                            WebRepositoryViewer webRepositoryViewer)
Deprecated. 
Sets the web repository viewer on the plan

Parameters:
webRepositoryViewer -
Returns:

setBuildStrategy

BuildPlanConstructor setBuildStrategy(@NotNull
                                      BuildStrategy buildStrategy)
Deprecated. 
Sets the build strategy

Parameters:
buildStrategy -
Returns:

setBuilder

BuildPlanConstructor setBuilder(@NotNull
                                Builder builder,
                                @NotNull
                                java.lang.String label)
Deprecated. 
Sets the builder on the plan, with the matching label

Parameters:
builder -
label -
Returns:

addNotificationRule

BuildPlanConstructor addNotificationRule(@NotNull
                                         NotificationRule newRule)
Deprecated. 
Adds a notification rule to the plan. Can add multiple

Parameters:
newRule -
Returns:

setBuildConfigurationProperty

BuildPlanConstructor setBuildConfigurationProperty(java.lang.String key,
                                                   java.lang.String value)
Deprecated. 
Adds any generic properties to the buildConfiguration for the plan you are currently creating

Parameters:
key -
value -
Returns:

toPlanCreationBean

PlanCreationBean toPlanCreationBean()
Deprecated. 
Outputs a PlanCreationBean that can then be persisted

Returns:


Copyright © 2011 Atlassian. All Rights Reserved.