|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.command.Command com.atlassian.bamboo.builder.AbstractBuilder com.atlassian.bamboo.builder.CustomCommandBuilder
public class CustomCommandBuilder
Field Summary | |
---|---|
static java.lang.String |
PARAM_ARG
|
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 | |
---|---|
CustomCommandBuilder()
|
Method Summary | |
---|---|
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) |
protected boolean |
bashExists()
|
java.lang.String |
getArgument()
|
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
What are the arguments for the command line to execute |
java.lang.String |
getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
What is the executable for the command line to execute |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Gets the full params that's used to persist. |
java.lang.String |
getName()
Returns a human readable version of the current Builder type |
java.lang.String |
getPathHelp()
Help text for the builder type |
java.lang.String |
getUrl()
|
boolean |
isPathValid(java.lang.String path)
Returns true if the passed path is valid for this builder. |
void |
setArgument(java.lang.String argument)
|
void |
setParams(FilteredMap filteredParams)
Updates the current builder object with |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredParams)
|
Methods inherited from class com.atlassian.bamboo.command.Command |
---|
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getCustomEnvironmentVars, getEnvironmentSetting, getSubstitutedCommandLine, getVariableSubstitutionBean, isWindowsPlatform, setBuildLoggerManager, setPluginAccessor, setVariableSubstitutionBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_ARG
Constructor Detail |
---|
public CustomCommandBuilder()
Method Detail |
---|
@NotNull public java.lang.String getName()
Builder
@NotNull public java.lang.String getPathHelp()
Builder
getPathHelp
in interface Builder
getPathHelp
in class AbstractBuilder
public java.lang.String getUrl()
@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
getCommandExecutable
in class Command
capabilitySet
-
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
getCommandArguments
in class Command
capabilitySet
-
public ErrorCollection validate(FilteredMap filteredParams)
validate
in class AbstractBuilder
@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
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. @NotNullpublic void addDefaultValues(@NotNull BuildConfiguration configuration)
BuildConfigurationAwarePlugin
BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
configuration
- - @NotNullpublic boolean isPathValid(@Nullable java.lang.String path)
Builder
@NotNull public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Builder
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public void setParams(@NotNull FilteredMap filteredParams)
Builder
setParams
in interface Builder
setParams
in class AbstractBuilder
filteredParams
- - Filtered Map with the prefix builder key stripped outpublic java.util.Map<java.lang.String,LabelPathMap> addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
protected boolean bashExists()
public java.lang.String getArgument()
public void setArgument(java.lang.String argument)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |