|
||||||||||
| 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.builder.AbstractMavenBuilder
TaskType
@Deprecated public abstract class AbstractMavenBuilder
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM_TEST_DIRECTORY_SELECTED
Deprecated. |
protected java.lang.String |
goal
Deprecated. |
static java.lang.String |
LOCAL_REPOSITORY_PROPERTY_NAME
Deprecated. Name of the property passed to maven to point to the different local repository |
static java.lang.String |
PARAM_GOAL
Deprecated. |
static java.lang.String |
PARAM_TEST_DIRECTORY_OPTION
Deprecated. |
static java.lang.String |
STANDARD_TEST_DIRECTORY_SELECTED
Deprecated. |
protected java.lang.String |
testDirectoryOption
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 | |
|---|---|
AbstractMavenBuilder()
Deprecated. |
|
| Method Summary | |
|---|---|
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) |
void |
executeBuild(BuildContext buildContext,
ReadOnlyCapabilitySet capabilitySet)
Deprecated. Runs the build, and updates the build results in the build context. |
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
Deprecated. What are the arguments for the command line to execute. |
java.lang.String |
getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
Deprecated. What is the executable for the command line to execute |
protected abstract java.lang.String |
getDefaultTestReportsDirectory()
Deprecated. |
protected abstract java.lang.String |
getExecutableFileName()
Deprecated. Gets the executable file name |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Deprecated. Gets the full params that's used to persist. |
java.lang.String |
getGoal()
Deprecated. Which goal will maven use to build the build? |
protected java.lang.String |
getMavenExecutablePath(java.lang.String homePath)
Deprecated. |
protected java.lang.String |
getMavenVersion(java.lang.String homePath)
Deprecated. Parse output of "mvn --version". |
protected java.util.Map<java.lang.String,java.lang.Object> |
getTemplateContext()
Deprecated. |
java.lang.String |
getTestDirectory()
Deprecated. Which test directory option are we using "standardTestDirectory:, or a "customTestDirectory" |
java.lang.String |
getTestResultsDirectory()
Deprecated. Return the default |
boolean |
hasPassed(int returnCode,
int buildNumber,
java.lang.String planKey)
Deprecated. Determines based on the return code and/or logs whether the build has passed. |
boolean |
isForceRepositoryIsolation()
Deprecated. Forces the redirection of the local Maven repository to a temporary location |
boolean |
isPathValid(java.lang.String homeDirectory)
Deprecated. Does the home dir contain /bin/ant? |
void |
setForceRepositoryIsolation(boolean forceRepositoryIsolation)
Deprecated. |
void |
setGoal(java.lang.String goal)
Deprecated. Set the goal that the build will execute. |
void |
setParams(FilteredMap filteredBuilderParams)
Deprecated. Updates the current builder object with |
void |
setTestDirectory(java.lang.String testDirectory)
Deprecated. Let the UI specify which test directory option we're using - standard or custom. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Deprecated. Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredParams)
Deprecated. Validate that the goal has been defined |
| 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 |
| Methods inherited from interface com.atlassian.bamboo.builder.Builder |
|---|
addDefaultLabelPathMaps, getName |
| Field Detail |
|---|
protected java.lang.String goal
protected java.lang.String testDirectoryOption
public static final java.lang.String PARAM_GOAL
public static final java.lang.String PARAM_TEST_DIRECTORY_OPTION
public static final java.lang.String CUSTOM_TEST_DIRECTORY_SELECTED
public static final java.lang.String STANDARD_TEST_DIRECTORY_SELECTED
public static final java.lang.String LOCAL_REPOSITORY_PROPERTY_NAME
| Constructor Detail |
|---|
public AbstractMavenBuilder()
| 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 boolean hasPassed(int returnCode,
int buildNumber,
java.lang.String planKey)
BuilderV2
hasPassed in interface BuilderV2hasPassed in class AbstractBuilderreturnCode - return code from build execution commandplanKey - @return true if build has passed@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
getCommandExecutable in class CommandcapabilitySet - hopefully containing the correct paths for this builder
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
getCommandArguments in class CommandcapabilitySet - - capabilitySet for the local context
@NotNull
protected java.lang.String getMavenExecutablePath(@NotNull
java.lang.String homePath)
@Nullable
protected java.lang.String getMavenVersion(@NotNull
java.lang.String homePath)
homePath - maven home directory
protected abstract java.lang.String getExecutableFileName()
public void setGoal(java.lang.String goal)
goal - The maven goalpublic java.lang.String getGoal()
public java.lang.String getTestResultsDirectory()
getTestResultsDirectory in class AbstractBuilderprotected abstract java.lang.String getDefaultTestReportsDirectory()
public java.lang.String getTestDirectory()
public void setTestDirectory(java.lang.String testDirectory)
testDirectory - Test directory to be set
public void setParams(@NotNull
FilteredMap filteredBuilderParams)
Builder
setParams in interface BuildersetParams in class AbstractBuilderfilteredBuilderParams - - Filtered Map with the prefix builder key stripped outpublic ErrorCollection validate(FilteredMap filteredParams)
validate in class AbstractBuilderfilteredParams -
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration 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. @NotNull
public void addDefaultValues(@NotNull
BuildConfiguration configuration)
BuildConfigurationAwarePluginRenderableBuildConfiguration.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 BuildergetFullParams in class AbstractBuilderpublic boolean isPathValid(java.lang.String homeDirectory)
homeDirectory - Home directory to be modified
public boolean isForceRepositoryIsolation()
public void setForceRepositoryIsolation(boolean forceRepositoryIsolation)
protected java.util.Map<java.lang.String,java.lang.Object> getTemplateContext()
getTemplateContext in class AbstractBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||