Class CommandTask


  • public class CommandTask
    extends com.atlassian.bamboo.specs.api.builders.task.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
      CommandTask argument​(@NotNull java.lang.String argument)
      Sets command line argument to be passed when command is executed.
      protected @NotNull CommandTaskProperties build()  
      CommandTask environmentVariables​(@NotNull java.lang.String environmentVariables)
      Sets environment variables to be set when command is executed.
      boolean equals​(java.lang.Object o)  
      CommandTask executable​(@NotNull java.lang.String executable)
      Sets label (not a path) of command to be executed.
      int hashCode()  
      CommandTask workingSubdirectory​(@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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommandTask

        public CommandTask()
    • 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.
      • equals

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