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
-
public class CommandTask extends Task<CommandTask,CommandTaskProperties>
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 Constructor Description CommandTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandTaskargument(@NotNull java.lang.String argument)Sets command line argument to be passed when command is executed.protected @NotNull CommandTaskPropertiesbuild()CommandTaskenvironmentVariables(@NotNull java.lang.String environmentVariables)Sets environment variables to be set when command is executed.booleanequals(java.lang.Object o)CommandTaskexecutable(@NotNull java.lang.String executable)Sets label (not a path) of command to be executed.inthashCode()CommandTaskworkingSubdirectory(@NotNull java.lang.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
-
-
-
-
Method Detail
-
executable
public CommandTask executable(@NotNull @NotNull java.lang.String 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
public CommandTask argument(@NotNull @NotNull java.lang.String argument)
Sets command line argument to be passed when command is executed.
-
environmentVariables
public CommandTask environmentVariables(@NotNull @NotNull java.lang.String environmentVariables)
Sets environment variables to be set when command is executed.
-
workingSubdirectory
public CommandTask workingSubdirectory(@NotNull @NotNull java.lang.String workingSubdirectory)
Sets a directory the command should be executed in.
-
build
@NotNull protected @NotNull CommandTaskProperties build()
- Specified by:
buildin classTask<CommandTask,CommandTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<CommandTask,CommandTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<CommandTask,CommandTaskProperties>
-
-