Package hudson.model.queue
Class Tasks
java.lang.Object
hudson.model.queue.Tasks
Convenience methods around
Queue.Task and SubTask.- Since:
- 1.377
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationDeprecated.static org.springframework.security.core.AuthenticationFinds what authentication a task is likely to be run under when scheduled.static AuthenticationDeprecated.callQueue.Task.getDefaultAuthentication()directlystatic AuthenticationDeprecated.callQueue.Task.getDefaultAuthentication(Item)directlystatic Itemstatic Queue.TaskDeprecated.callSubTask.getOwnerTask()directlystatic ObjectDeprecated.callSubTask.getSameNodeConstraint()directlystatic Collection<? extends SubTask>getSubTasksOf(Queue.Task task) Deprecated.callQueue.Task.getSubTasks()directly
-
Constructor Details
-
Tasks
public Tasks()
-
-
Method Details
-
getSubTasksOf
Deprecated.callQueue.Task.getSubTasks()directly -
getSameNodeConstraintOf
Deprecated.callSubTask.getSameNodeConstraint()directly -
getOwnerTaskOf
Deprecated.callSubTask.getOwnerTask()directly -
getItemOf
-
getDefaultAuthenticationOf
Deprecated.callQueue.Task.getDefaultAuthentication()directly -
getDefaultAuthenticationOf
@Deprecated @NonNull public static Authentication getDefaultAuthenticationOf(Queue.Task t, Queue.Item item) Deprecated.callQueue.Task.getDefaultAuthentication(Item)directly -
getAuthenticationOf2
@NonNull public static org.springframework.security.core.Authentication getAuthenticationOf2(@NonNull Queue.Task t) Finds what authentication a task is likely to be run under when scheduled. The actual authentication after scheduling (Queue.Item.authenticate2()) might differ, in case someQueueItemAuthenticator.authenticate2(hudson.model.Queue.Item)takes (for example) actions into consideration.- Parameters:
t- a task- Returns:
- an authentication as specified by some
QueueItemAuthenticator.authenticate2(hudson.model.Queue.Task); elseQueue.Task.getDefaultAuthentication2() - Since:
- 2.266
-
getAuthenticationOf
Deprecated.- Since:
- 1.560
-
getAuthenticationOf2(hudson.model.Queue.Task)