Class ExecutorStepExecution.PlaceholderTask
java.lang.Object
org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.PlaceholderTask
- All Implemented Interfaces:
ModelObject,SubTask,Queue.Task,ResourceActivity,AccessControlled,Serializable,org.jenkinsci.plugins.durabletask.executors.ContinuedTask
- Enclosing class:
- ExecutorStepExecution
@ExportedBean
public static final class ExecutorStepExecution.PlaceholderTask
extends Object
implements org.jenkinsci.plugins.durabletask.executors.ContinuedTask, Serializable, AccessControlled
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classfinal classOccupiesExecutorwhile workflow uses this build agent.Nested classes/interfaces inherited from interface org.jenkinsci.plugins.durabletask.executors.ContinuedTask
org.jenkinsci.plugins.durabletask.executors.ContinuedTask.Scheduler -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetACL()Something we can use to check abort and read permissions.Provide unique key which will be used to prioritize the list of possible build agents to useorg.springframework.security.core.Authenticationorg.springframework.security.core.AuthenticationlonggetName()org.jenkinsci.plugins.workflow.graph.FlowNodegetNode()GivesFlowNode, waiting to be executed in buildQueue.Collection<? extends SubTask>getUrl()Deprecated.booleaninthashCode()booleanBody has begun execution: we started using a node.booleanDeprecated.booleanbooleanRun<?,?> run()Deprecated.Run<?,?> Deprecated.usegetOwnerExecutable()(which does not require a dependency on this plugin) if your core dep is 2.389+toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.Queue.Task
getDefaultAuthentication, getDefaultAuthentication
-
Method Details
-
getNode
@CheckForNull public org.jenkinsci.plugins.workflow.graph.FlowNode getNode() throws IOException, InterruptedExceptionGivesFlowNode, waiting to be executed in buildQueue.- Returns:
- FlowNode instance, could be null.
- Throws:
IOExceptionInterruptedException
-
createExecutable
- Specified by:
createExecutablein interfaceSubTask- Throws:
IOException
-
hasStarted
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean hasStarted()Body has begun execution: we started using a node. -
getAssignedLabel
- Specified by:
getAssignedLabelin interfaceSubTask
-
getLastBuiltOn
- Specified by:
getLastBuiltOnin interfaceSubTask
-
isBuildBlocked
Deprecated.- Specified by:
isBuildBlockedin interfaceQueue.Task
-
getWhyBlocked
Deprecated.- Specified by:
getWhyBlockedin interfaceQueue.Task
-
getCauseOfBlockage
- Specified by:
getCauseOfBlockagein interfaceQueue.Task
-
isConcurrentBuild
public boolean isConcurrentBuild()- Specified by:
isConcurrentBuildin interfaceQueue.Task
-
getSubTasks
- Specified by:
getSubTasksin interfaceQueue.Task
-
getOwnerTask
- Specified by:
getOwnerTaskin interfaceSubTask
-
getSameNodeConstraint
- Specified by:
getSameNodeConstraintin interfaceSubTask
-
getACL
Something we can use to check abort and read permissions. Normally this will be aRun. If that has been deleted, we can fall back to theJob. If things are badly broken, for example if the whole job has been deleted, then as a fallback we use the Jenkins root. This allows an administrator to clean up dead queue items and executor cells.- Specified by:
getACLin interfaceAccessControlled
-
checkAbortPermission
public void checkAbortPermission()- Specified by:
checkAbortPermissionin interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()- Specified by:
hasAbortPermissionin interfaceQueue.Task
-
run
Deprecated.usegetOwnerExecutable()(which does not require a dependency on this plugin) if your core dep is 2.389+ -
runForDisplay
Deprecated.usegetOwnerExecutable()(which does not require a dependency on this plugin) if your core dep is 2.389+ -
getOwnerExecutable
- Specified by:
getOwnerExecutablein interfaceSubTask
-
getUrl
- Specified by:
getUrlin interfaceQueue.Task
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Specified by:
getDisplayNamein interfaceResourceActivity
-
getName
- Specified by:
getNamein interfaceQueue.Task
-
getFullDisplayName
- Specified by:
getFullDisplayNamein interfaceQueue.Task
-
getAffinityKey
Provide unique key which will be used to prioritize the list of possible build agents to use- Specified by:
getAffinityKeyin interfaceQueue.Task
-
getEnclosingLabel
@Restricted(org.kohsuke.accmod.restrictions.Beta.class) @CheckForNull public String getEnclosingLabel() -
getEstimatedDuration
public long getEstimatedDuration()- Specified by:
getEstimatedDurationin interfaceSubTask
-
getResourceList
- Specified by:
getResourceListin interfaceResourceActivity
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2()- Specified by:
getDefaultAuthentication2in interfaceQueue.Task
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2(Queue.Item item) - Specified by:
getDefaultAuthentication2in interfaceQueue.Task
-
isContinued
public boolean isContinued()- Specified by:
isContinuedin interfaceorg.jenkinsci.plugins.durabletask.executors.ContinuedTask
-
toString
-
hashCode
public int hashCode() -
equals
-
getOwnerExecutable()(which does not require a dependency on this plugin) if your core dep is 2.389+