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 com.atlassian.bamboo.specs.api.builders.task.Task<CommandTask,CommandTaskProperties>
Represents a task that executes a command.
  • Constructor Details

    • CommandTask

      public CommandTask()
  • Method Details

    • executable

      public CommandTask executable(@NotNull @NotNull 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 String argument)
      Sets command line argument to be passed when command is executed.
    • environmentVariables

      public CommandTask environmentVariables(@NotNull @NotNull String environmentVariables)
      Sets environment variables to be set when command is executed.
    • workingSubdirectory

      public CommandTask workingSubdirectory(@NotNull @NotNull String workingSubdirectory)
      Sets a directory the command should be executed in.
    • build

      @NotNull protected @NotNull CommandTaskProperties build()
      Specified by:
      build in class com.atlassian.bamboo.specs.api.builders.task.Task<CommandTask,CommandTaskProperties>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.atlassian.bamboo.specs.api.builders.task.Task<CommandTask,CommandTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.atlassian.bamboo.specs.api.builders.task.Task<CommandTask,CommandTaskProperties>