|
||||||||||
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.plugins.builder.php.AbstractPhpUnitBuilder
TaskType
@Deprecated public abstract class AbstractPhpUnitBuilder
This class provides a PHPUnit version of Builder
.
Field Summary | |
---|---|
protected java.lang.String |
arguments
Deprecated. |
protected java.lang.String |
coverageHtmlDirectory
Deprecated. |
protected boolean |
coverageHtmlEnabled
Deprecated. |
protected boolean |
logXmlEnabled
Deprecated. |
protected java.lang.String |
logXmlFile
Deprecated. |
protected java.lang.String |
options
Deprecated. |
static java.lang.String |
PATHHELP
Deprecated. |
protected static java.lang.String |
PHP_UNIT_BUILD_SUCCESSFUL_MARKER
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 | |
---|---|
AbstractPhpUnitBuilder()
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. |
int |
executeCommand(BuildContext buildContext,
CommandExecuteStreamHandler commandExecuteStreamHandler,
java.lang.String extraEnvironmentVariables,
java.lang.String javaHome,
ReadOnlyCapabilitySet capabilitySet)
Deprecated. Check if output directories for PHPUnit are created. |
java.io.File |
findPhpUnitExecutable()
Deprecated. Find PHPUnit executable in system paths |
java.lang.String |
getArguments()
Deprecated. |
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 |
java.lang.String |
getCoverageHtmlDirectory()
Deprecated. |
protected java.lang.String[] |
getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Deprecated. Gets the full params that's used to persist. |
java.lang.String |
getLogXmlFile()
Deprecated. |
protected abstract java.lang.String |
getLogXmlOption()
Deprecated. |
java.lang.String |
getPathHelp()
Deprecated. Return text that will appear as a description under a chosen builder in the "Add Capability" screen |
java.lang.String |
getPhpUnitVersion(java.lang.String phpUnitPath)
Deprecated. Parse output of "phpunit --version" |
java.lang.String |
getTestResultsDirectory()
Deprecated. What are the build's junit test results stored? Can be a comma separated list |
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 |
hasTests()
Deprecated. Does the build have any tests to be included in the build results web pages? |
boolean |
isCoverageHtmlEnabled()
Deprecated. |
boolean |
isLogXmlEnabled()
Deprecated. |
boolean |
isPathValid(java.lang.String path)
Deprecated. Check for a full path to phpunit script |
void |
setArguments(java.lang.String arguments)
Deprecated. |
void |
setCoverageHtmlDirectory(java.lang.String coverageHtmlDirectory)
Deprecated. |
void |
setCoverageHtmlEnabled(boolean coverageHtmlEnabled)
Deprecated. |
void |
setLogXmlEnabled(boolean logXmlEnabled)
Deprecated. |
void |
setLogXmlFile(java.lang.String logXmlFile)
Deprecated. |
void |
setParams(FilteredMap filteredBuilderParams)
Deprecated. Updates the current builder object with |
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, getBuildLoggerManager, getCommandLine, 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 |
---|
public static final java.lang.String PATHHELP
protected static final java.lang.String PHP_UNIT_BUILD_SUCCESSFUL_MARKER
protected java.lang.String arguments
protected boolean logXmlEnabled
protected java.lang.String logXmlFile
protected boolean coverageHtmlEnabled
protected java.lang.String coverageHtmlDirectory
protected java.lang.String options
Constructor Detail |
---|
public AbstractPhpUnitBuilder()
Method Detail |
---|
@NotNull protected abstract java.lang.String getLogXmlOption()
public void executeBuild(@NotNull BuildContext buildContext, ReadOnlyCapabilitySet capabilitySet) throws java.lang.InterruptedException, RepositoryException
BuilderV2
executeBuild
in interface BuilderV2
executeBuild
in class AbstractBuilder
java.lang.InterruptedException
RepositoryException
@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
getCommandExecutable
in class Command
capabilitySet
- - for the current context
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
getCommandArguments
in class Command
capabilitySet
- - for the current context
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 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@Nullable public java.io.File findPhpUnitExecutable()
@Nullable public java.lang.String getPhpUnitVersion(@NotNull java.lang.String phpUnitPath)
phpUnitPath
- path to phpunit script
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 passedpublic void setParams(@NotNull FilteredMap filteredBuilderParams)
Builder
setParams
in interface Builder
setParams
in class AbstractBuilder
filteredBuilderParams
- - Filtered Map with the prefix builder key stripped out@NotNull public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Builder
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public int executeCommand(@NotNull BuildContext buildContext, @NotNull CommandExecuteStreamHandler commandExecuteStreamHandler, java.lang.String extraEnvironmentVariables, java.lang.String javaHome, ReadOnlyCapabilitySet capabilitySet) throws CommandException
executeCommand
in class Command
buildContext
- The BuildContext for the current buildcommandExecuteStreamHandler
- Stream Handler for the output of the execute commandextraEnvironmentVariables
- environment variable additional to those already in the env (e.g provided by the user via UI)javaHome
- The java home value for this commandcapabilitySet
- Capability set
CommandException
public boolean hasTests()
AbstractBuilder
hasTests
in interface Builder
hasTests
in class AbstractBuilder
public java.lang.String getTestResultsDirectory()
AbstractBuilder
getTestResultsDirectory
in class AbstractBuilder
public boolean isPathValid(java.lang.String path)
protected java.lang.String[] getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
getCustomEnvironmentVars
in class Command
@NotNull public java.lang.String getPathHelp()
AbstractBuilder
getPathHelp
in interface Builder
getPathHelp
in class AbstractBuilder
public void setArguments(java.lang.String arguments)
public java.lang.String getArguments()
public boolean isLogXmlEnabled()
public void setLogXmlEnabled(boolean logXmlEnabled)
public java.lang.String getLogXmlFile()
public void setLogXmlFile(java.lang.String logXmlFile)
public boolean isCoverageHtmlEnabled()
public void setCoverageHtmlEnabled(boolean coverageHtmlEnabled)
public java.lang.String getCoverageHtmlDirectory()
public void setCoverageHtmlDirectory(java.lang.String coverageHtmlDirectory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |