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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets command line argument to be passed when command is executed.protected @NotNull CommandTaskPropertiesbuild()environmentVariables(@NotNull String environmentVariables) Sets environment variables to be set when command is executed.booleanexecutable(@NotNull String executable) Sets label (not a path) of command to be executed.inthashCode()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:
buildin classTask<CommandTask,CommandTaskProperties>
-
equals
- Overrides:
equalsin classTask<CommandTask,CommandTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classTask<CommandTask,CommandTaskProperties>
-