|
||||||||||
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.AbstractMavenBuilder
public abstract class AbstractMavenBuilder
Field Summary | |
---|---|
static java.lang.String |
CUSTOM_TEST_DIRECTORY_SELECTED
|
protected java.lang.String |
goal
|
static java.lang.String |
LOCAL_REPOSITORY_PROPERTY_NAME
Name of the property passed to maven to point to the different local repository |
static java.lang.String |
PARAM_GOAL
|
static java.lang.String |
PARAM_TEST_DIRECTORY_OPTION
|
static java.lang.String |
STANDARD_TEST_DIRECTORY_SELECTED
|
protected java.lang.String |
testDirectoryOption
|
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 | |
---|---|
AbstractMavenBuilder()
|
Method Summary | |
---|---|
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) |
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 |
protected abstract java.lang.String |
getDefaultTestReportsDirectory()
|
protected abstract java.lang.String |
getExecutableFileName()
Gets the executable file name |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Gets the full params that's used to persist. |
java.lang.String |
getGoal()
Which goal will maven use to build the build? |
protected java.lang.String |
getMavenExecutablePath(java.lang.String homePath)
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getTemplateContext()
|
java.lang.String |
getTestDirectory()
Which test directory option are we using "standardTestDirectory:, or a "customTestDirectory" |
java.lang.String |
getTestResultsDirectory()
Return the default |
boolean |
hasPassed(int returnCode,
int buildNumber,
java.lang.String planKey)
Determines based on the return code and/or logs whether the build has passed. |
boolean |
isPathValid(java.lang.String homeDirectory)
Does the home dir contain /bin/ant? |
void |
setGoal(java.lang.String goal)
Set the goal that the build will execute. |
void |
setParams(FilteredMap filteredBuilderParams)
Updates the current builder object with |
void |
setTestDirectory(java.lang.String testDirectory)
Let the UI specify which test directory option we're using - standard or custom. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredParams)
Validate that the goal has been defined |
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 |
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 boolean hasPassed(int returnCode, int buildNumber, java.lang.String planKey)
BuilderV2
hasPassed
in interface BuilderV2
hasPassed
in class AbstractBuilder
returnCode
- return code from build execution commandplanKey
- @return true if build has passed@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
getCommandExecutable
in class Command
capabilitySet
- hopefully containing the correct paths for this builder
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
getCommandArguments
in class Command
capabilitySet
- - capabilitySet for the local context
protected java.lang.String getMavenExecutablePath(java.lang.String homePath)
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 AbstractBuilder
protected abstract java.lang.String getDefaultTestReportsDirectory()
public java.lang.String getTestDirectory()
public void setTestDirectory(java.lang.String testDirectory)
testDirectory
- Test directory to be setpublic void setParams(@NotNull FilteredMap filteredBuilderParams)
Builder
setParams
in interface Builder
setParams
in class AbstractBuilder
filteredBuilderParams
- - Filtered Map with the prefix builder key stripped outpublic ErrorCollection validate(FilteredMap filteredParams)
validate
in class AbstractBuilder
filteredParams
-
@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
- - @NotNull@NotNull public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Builder
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public boolean isPathValid(java.lang.String homeDirectory)
homeDirectory
- Home directory to be modified
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 |