|
||||||||||
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.ScriptBuilder
@Deprecated public class ScriptBuilder
This class provides a command line Script version of Builder
.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_UNIX_EXECUTOR
Deprecated. |
static java.lang.String |
DEFAULT_WINDOWS_EXECUTOR
Deprecated. |
static java.lang.String |
NAME
Deprecated. |
static java.lang.String |
PARAM_ARG
Deprecated. |
static java.lang.String |
PARAM_SCRIPT
Deprecated. |
Fields inherited from class com.atlassian.bamboo.command.Command |
---|
buildLoggerManager, customVariableContext |
Fields inherited from interface com.atlassian.bamboo.builder.Builder |
---|
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE |
Constructor Summary | |
---|---|
ScriptBuilder()
Deprecated. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,LabelPathMap> |
addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
Deprecated. |
void |
addDefaultValues(BuildConfiguration configuration)
Deprecated. Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
java.util.Map<java.lang.String,java.lang.String> |
customiseLabelTypeMap(java.util.Map<java.lang.String,java.lang.String> labelPathMaps)
Deprecated. Allows the builder to add extra label -> builder type key mappings |
java.lang.String |
getArgument()
Deprecated. |
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
Deprecated. 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)
Deprecated. What is the executable for the command line to execute. |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Deprecated. Gets the full params that's used to persist. |
java.lang.String |
getName()
Deprecated. Returns a human readable version of the current Builder type |
java.lang.String |
getScript()
Deprecated. What is the name of the build script to be executed |
java.lang.String |
getUrl()
Deprecated. |
boolean |
isLabelPathMapConfigurable()
Deprecated. Returns true if the Builder can have its LabelPathMap configurable. |
boolean |
isPathValid(java.lang.String path)
Deprecated. Returns true if the passed path is valid for this builder. |
void |
setArgument(java.lang.String argument)
Deprecated. |
void |
setParams(FilteredMap filteredParams)
Deprecated. Updates the current builder object with |
void |
setScript(java.lang.String script)
Deprecated. Specify the script to be executed by the build |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Deprecated. Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredBuilderParams)
Deprecated. Validate that the scripts mandatory fields have been defined correctly |
Methods inherited from class com.atlassian.bamboo.command.Command |
---|
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getCustomEnvironmentVars, getEnvironmentSetting, getSubstitutedCommandLine, isWindowsPlatform, setBuildLoggerManager, setCustomVariableContext, setPluginAccessor |
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 DEFAULT_UNIX_EXECUTOR
public static final java.lang.String DEFAULT_WINDOWS_EXECUTOR
public static final java.lang.String NAME
public static final java.lang.String PARAM_SCRIPT
public static final java.lang.String PARAM_ARG
Constructor Detail |
---|
public ScriptBuilder()
Method Detail |
---|
@NotNull public java.lang.String getName()
Builder
public java.lang.String getUrl()
public java.lang.String getScript()
public void setScript(java.lang.String script)
script
- The script file to execute@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
Command
getCommandExecutable
in class Command
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
Command
getCommandArguments
in class Command
capabilitySet
- - for the current context
public ErrorCollection validate(FilteredMap filteredBuilderParams)
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 RenderableBuildConfiguration.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
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
configuration
- - @NotNull@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 boolean isPathValid(@Nullable java.lang.String path)
Builder
public boolean isLabelPathMapConfigurable()
Builder
LabelPathMap
configurable. If it can't be, it won't be displayed
on the ConfigureBuilder page.
isLabelPathMapConfigurable
in interface Builder
isLabelPathMapConfigurable
in class AbstractBuilder
LabelPathMap
is configurablepublic java.util.Map<java.lang.String,java.lang.String> customiseLabelTypeMap(java.util.Map<java.lang.String,java.lang.String> labelPathMaps)
Builder
customiseLabelTypeMap
in interface Builder
customiseLabelTypeMap
in class AbstractBuilder
labelPathMaps
- may be nullpublic java.util.Map<java.lang.String,LabelPathMap> addDefaultLabelPathMaps(@NotNull java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
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 |