|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.command.Command
com.atlassian.bamboo.builder.AbstractBuilder
com.atlassian.bamboo.plugins.grails.GrailsBuilder
public class GrailsBuilder
| Field Summary |
|---|
| Fields inherited from class com.atlassian.bamboo.command.Command |
|---|
buildLoggerManager, CBD_BUILD_COMMANDLINE, substitutionBean |
| Fields inherited from interface com.atlassian.bamboo.builder.Builder |
|---|
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE |
| Constructor Summary | |
|---|---|
GrailsBuilder()
|
|
| Method Summary | |
|---|---|
void |
addAdditionalCommand(java.lang.String command)
Prepends a command to run before user defined commands |
java.util.Map<java.lang.String,LabelPathMap> |
addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
|
void |
addDefaultValues(BuildConfiguration configuration)
Extension point for adding default values to the form for BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
void |
executeBuild(BuildContext buildContext,
ReadOnlyCapabilitySet capabilitySet)
Runs the build, and updates the build results in the build context. |
java.util.Collection<java.lang.String> |
getAdditionalCommands()
|
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet readOnlyCapabilitySet)
What are the arguments for the command line to execute Variable substitution is not required for the arguments, substitution will be performed later. |
java.lang.String |
getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
What is the executable for the command line to execute. |
protected java.lang.String[] |
getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
|
protected java.lang.String |
getDefaultTestReportsDirectory()
|
protected java.lang.String |
getExecutableFileName()
|
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Gets the full params that's used to persist. |
java.lang.String |
getGoal()
|
java.lang.String |
getName()
Returns a human readable version of the current Builder type |
protected java.util.Map |
getTemplateContext()
|
java.lang.String |
getTestDirectory()
|
boolean |
isPathValid(java.lang.String homeDirectory)
Returns true if the passed path is valid for this builder. |
CurrentBuildResult |
runBuild(BuildContext buildContext,
ReadOnlyCapabilitySet capabilitySet)
|
void |
setGoal(java.lang.String goal)
|
void |
setParams(FilteredMap filteredBuilderParams)
Updates the current builder object with |
void |
setTestDirectory(java.lang.String testDirectory)
|
void |
setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
|
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
protected ErrorCollection |
validate(FilteredMap<java.lang.String> filteredParams)
|
| Methods inherited from class com.atlassian.bamboo.command.Command |
|---|
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getEnvironmentSetting, getSubstitutedCommandLine, getVariableSubstitutionBean, isWindowsPlatform, setBuildLoggerManager, setPluginAccessor, setVariableSubstitutionBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GrailsBuilder()
| Method Detail |
|---|
public void executeBuild(@NotNull
BuildContext buildContext,
ReadOnlyCapabilitySet capabilitySet)
throws java.lang.InterruptedException,
RepositoryException
BuilderV2
executeBuild in interface BuilderV2executeBuild in class AbstractBuilderjava.lang.InterruptedException
RepositoryException
public CurrentBuildResult runBuild(@NotNull
BuildContext buildContext,
@NotNull
ReadOnlyCapabilitySet capabilitySet)
throws java.lang.InterruptedException
runBuild in class AbstractBuilderjava.lang.InterruptedExceptionpublic void addAdditionalCommand(java.lang.String command)
command - public java.util.Collection<java.lang.String> getAdditionalCommands()
protected ErrorCollection validate(FilteredMap<java.lang.String> filteredParams)
validate in class AbstractBuilder@NotNull public java.lang.String getName()
Builder
public void setParams(@NotNull
FilteredMap filteredBuilderParams)
Builder
setParams in interface BuildersetParams in class AbstractBuilderfilteredBuilderParams - - Filtered Map with the prefix builder key stripped outpublic void setGoal(java.lang.String goal)
public java.lang.String getGoal()
public void setTestDirectory(java.lang.String testDirectory)
public java.lang.String getTestDirectory()
protected java.util.Map getTemplateContext()
getTemplateContext in class AbstractBuilderpublic java.util.Map<java.lang.String,LabelPathMap> addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
public boolean isPathValid(java.lang.String homeDirectory)
Builder
public void addDefaultValues(@NotNull
BuildConfiguration configuration)
BuildConfigurationAwarePluginBuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
configuration - - @NotNull
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration object. The name of the properties match those passed
in through the form fragments in BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.
buildConfiguration - - @NotNull
ErrorCollection keyed by the field name. @NotNull@NotNull public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Builder
getFullParams in interface BuildergetFullParams in class AbstractBuilder@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
Command
getCommandExecutable in class Command@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet readOnlyCapabilitySet)
Command
getCommandArguments in class CommandreadOnlyCapabilitySet - - for the current context
protected java.lang.String getDefaultTestReportsDirectory()
protected java.lang.String[] getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
getCustomEnvironmentVars in class Commandprotected java.lang.String getExecutableFileName()
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||