Interface ITask

All Superinterfaces:
ModelObject
All Known Subinterfaces:
BuildableItem, BuildableItemWithBuildWrappers, ParameterizedJobMixIn.ParameterizedJob<JobT,RunT>, Queue.FlyweightTask, Queue.NonBlockingTask, Queue.Task, Queue.TransientTask, SCMedItem, SubTask
All Known Implementing Classes:
AbstractProject, AbstractQueueTask, AbstractSubTask, FreeStyleProject, Project, QueueTaskFilter

public interface ITask extends ModelObject
A task that can be displayed in the executors widget.
Since:
2.480
  • Method Details

    • hasAbortPermission

      default boolean hasAbortPermission()
      Returns:
      true if the current user can cancel the current task. NOTE: If you have implemented AccessControlled this returns by default hasPermission(Item.CANCEL)
    • hasReadPermission

      default boolean hasReadPermission()
      Returns:
      true if the current user has read access on the task.
    • getFullDisplayName

      default String getFullDisplayName()
      Returns:
      the full display name of the task.

      Defaults to the same as ModelObject.getDisplayName().

    • getUrl

      @CheckForNull String getUrl()
      Returns:
      the URL where to reach specifically this task, relative to Jenkins URL. If non-null, must end with '/'.