Class CommandTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<CommandTask,CommandTaskProperties>
com.atlassian.bamboo.specs.builders.task.CommandTask
Represents a task that executes a command.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets command line argument to be passed when command is executed.protected @NotNull CommandTaskProperties
build()
environmentVariables
(@NotNull String environmentVariables) Sets environment variables to be set when command is executed.boolean
executable
(@NotNull String executable) Sets label (not a path) of command to be executed.int
hashCode()
workingSubdirectory
(@NotNull String workingSubdirectory) Sets a directory the command should be executed in.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
CommandTask
public CommandTask()
-
-
Method Details
-
executable
Sets label (not a path) of command to be executed. This label must be first defined in the GUI on the Administration/Executables page. This field is mandatory -
argument
Sets command line argument to be passed when command is executed. -
environmentVariables
Sets environment variables to be set when command is executed. -
workingSubdirectory
Sets a directory the command should be executed in. -
build
- Specified by:
build
in classTask<CommandTask,
CommandTaskProperties>
-
equals
- Overrides:
equals
in classTask<CommandTask,
CommandTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<CommandTask,
CommandTaskProperties>
-