public abstract class AbstractQueueTask extends Object implements Queue.Task
Queue.Taskto protect plugins from new additions to the interface.
Plugins are encouraged to implement
the tasks will be hidden from display in the queue.
|Constructor and Description|
|Modifier and Type||Method and Description|
If the execution of this task should be blocked for temporary reasons, this method returns a non-null object explaining why.
This default implementation is the historical behaviour, but this is no longer desirable.
This method allows the task to provide the default fallback authentication object to be used when
True if the task allows concurrent builds, where the same
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAbortPermission, getFullDisplayName, getName, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked
createExecutable, getAssignedLabel, getEstimatedDuration, getLastBuiltOn
public Collection<? extends SubTask> getSubTasks()
SubTasks that constitute this task.
At least size 1.
public final Queue.Task getOwnerTask()
Queue.Taskthat this subtask belongs to.
public boolean isConcurrentBuild()
Queue.Taskis executed by multiple executors concurrently on the same or different nodes.
public CauseOfBlockage getCauseOfBlockage()
Otherwise this method returns null, indicating that the build can proceed right away.
This can be used to define mutual exclusion that goes beyond
public Object getSameNodeConstraint()
SubTasks of a
Queue.Taskneeds to be collocated with other
SubTasks should return the equal object here. If null, the execution unit isn't under a colocation constraint.
@Nonnull public org.acegisecurity.Authentication getDefaultAuthentication()
Queue.Task.getDefaultAuthentication()for the contract.
@Nonnull public org.acegisecurity.Authentication getDefaultAuthentication(Queue.Item item)
QueueItemAuthenticatorfails to authenticate the build.
When the task execution touches other objects inside Jenkins, the access control is performed
based on whether this
Authentication is allowed to use them.
This method was added to an interface after it was created, so plugins built against
older versions of Jenkins may not have this method implemented. Called private method _getDefaultAuthenticationOf(Task) on
Copyright © 2004–2017. All rights reserved.