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
Modifier and TypeClassDescriptionstatic class
static final class
final class
OccupiesExecutor
while 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 TypeMethodDescriptionvoid
boolean
getACL()
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 uselong
getName()
org.jenkinsci.plugins.workflow.graph.FlowNode
getNode()
GivesFlowNode
, waiting to be executed in buildQueue
.Collection<? extends SubTask>
getUrl()
Deprecated.boolean
int
hashCode()
boolean
Body has begun execution: we started using a node.boolean
Deprecated.boolean
boolean
Run<?,
?> 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, wait
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
Methods inherited from interface hudson.model.Queue.Task
getDefaultAuthentication2, getDefaultAuthentication2
-
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:
IOException
InterruptedException
-
createExecutable
- Specified by:
createExecutable
in 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:
getAssignedLabel
in interfaceSubTask
-
getLastBuiltOn
- Specified by:
getLastBuiltOn
in interfaceSubTask
-
isBuildBlocked
Deprecated.- Specified by:
isBuildBlocked
in interfaceQueue.Task
-
getWhyBlocked
Deprecated.- Specified by:
getWhyBlocked
in interfaceQueue.Task
-
getCauseOfBlockage
- Specified by:
getCauseOfBlockage
in interfaceQueue.Task
-
isConcurrentBuild
public boolean isConcurrentBuild()- Specified by:
isConcurrentBuild
in interfaceQueue.Task
-
getSubTasks
- Specified by:
getSubTasks
in interfaceQueue.Task
-
getOwnerTask
- Specified by:
getOwnerTask
in interfaceSubTask
-
getSameNodeConstraint
- Specified by:
getSameNodeConstraint
in 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:
getACL
in interfaceAccessControlled
-
checkAbortPermission
public void checkAbortPermission()- Specified by:
checkAbortPermission
in interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()- Specified by:
hasAbortPermission
in 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:
getOwnerExecutable
in interfaceSubTask
-
getUrl
- Specified by:
getUrl
in interfaceQueue.Task
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Specified by:
getDisplayName
in interfaceResourceActivity
-
getName
- Specified by:
getName
in interfaceQueue.Task
-
getFullDisplayName
- Specified by:
getFullDisplayName
in interfaceQueue.Task
-
getAffinityKey
Provide unique key which will be used to prioritize the list of possible build agents to use- Specified by:
getAffinityKey
in interfaceQueue.Task
-
getEnclosingLabel
@Restricted(org.kohsuke.accmod.restrictions.Beta.class) @CheckForNull public String getEnclosingLabel() -
getEstimatedDuration
public long getEstimatedDuration()- Specified by:
getEstimatedDuration
in interfaceSubTask
-
getResourceList
- Specified by:
getResourceList
in interfaceResourceActivity
-
getDefaultAuthentication
- Specified by:
getDefaultAuthentication
in interfaceQueue.Task
-
getDefaultAuthentication
- Specified by:
getDefaultAuthentication
in interfaceQueue.Task
-
isContinued
public boolean isContinued()- Specified by:
isContinued
in 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+