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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutorStepExecution.PlaceholderTask.AuthenticationFromBuild
class
ExecutorStepExecution.PlaceholderTask.PlaceholderExecutable
OccupiesExecutor
while workflow uses this build agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
checkAbortPermission()
Queue.Executable
createExecutable()
boolean
equals(Object obj)
ACL
getACL()
Something we can use to check abort and read permissions.String
getAffinityKey()
Provide unique key which will be used to prioritize the list of possible build agents to useLabel
getAssignedLabel()
CauseOfBlockage
getCauseOfBlockage()
Authentication
getDefaultAuthentication()
Authentication
getDefaultAuthentication(Queue.Item item)
String
getDisplayName()
String
getEnclosingLabel()
long
getEstimatedDuration()
String
getFullDisplayName()
Node
getLastBuiltOn()
String
getName()
org.jenkinsci.plugins.workflow.graph.FlowNode
getNode()
GivesFlowNode
, waiting to be executed in buildQueue
.Queue.Executable
getOwnerExecutable()
Queue.Task
getOwnerTask()
ResourceList
getResourceList()
Object
getSameNodeConstraint()
Collection<? extends SubTask>
getSubTasks()
String
getUrl()
String
getWhyBlocked()
Deprecated.boolean
hasAbortPermission()
int
hashCode()
boolean
hasStarted()
Body has begun execution: we started using a node.boolean
isBuildBlocked()
Deprecated.boolean
isConcurrentBuild()
boolean
isContinued()
Run<?,?>
run()
Deprecated.usegetOwnerExecutable()
(which does not require a dependency on this plugin) if your core dep is 2.389+Run<?,?>
runForDisplay()
Deprecated.usegetOwnerExecutable()
(which does not require a dependency on this plugin) if your core dep is 2.389+String
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 Detail
-
getNode
@CheckForNull public org.jenkinsci.plugins.workflow.graph.FlowNode getNode() throws IOException, InterruptedException
GivesFlowNode
, waiting to be executed in buildQueue
.- Returns:
- FlowNode instance, could be null.
- Throws:
IOException
InterruptedException
-
createExecutable
public Queue.Executable createExecutable() throws IOException
- 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
public Label getAssignedLabel()
- Specified by:
getAssignedLabel
in interfaceSubTask
-
getLastBuiltOn
public Node getLastBuiltOn()
- Specified by:
getLastBuiltOn
in interfaceSubTask
-
isBuildBlocked
@Deprecated public boolean isBuildBlocked()
Deprecated.- Specified by:
isBuildBlocked
in interfaceQueue.Task
-
getWhyBlocked
@Deprecated public String getWhyBlocked()
Deprecated.- Specified by:
getWhyBlocked
in interfaceQueue.Task
-
getCauseOfBlockage
public CauseOfBlockage getCauseOfBlockage()
- Specified by:
getCauseOfBlockage
in interfaceQueue.Task
-
isConcurrentBuild
public boolean isConcurrentBuild()
- Specified by:
isConcurrentBuild
in interfaceQueue.Task
-
getSubTasks
public Collection<? extends SubTask> getSubTasks()
- Specified by:
getSubTasks
in interfaceQueue.Task
-
getOwnerTask
@NonNull public Queue.Task getOwnerTask()
- Specified by:
getOwnerTask
in interfaceSubTask
-
getSameNodeConstraint
public Object getSameNodeConstraint()
- Specified by:
getSameNodeConstraint
in interfaceSubTask
-
getACL
@NonNull public ACL 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 @CheckForNull public Run<?,?> run()
Deprecated.usegetOwnerExecutable()
(which does not require a dependency on this plugin) if your core dep is 2.389+
-
runForDisplay
@Deprecated @CheckForNull public Run<?,?> runForDisplay()
Deprecated.usegetOwnerExecutable()
(which does not require a dependency on this plugin) if your core dep is 2.389+
-
getOwnerExecutable
@CheckForNull public Queue.Executable getOwnerExecutable()
- Specified by:
getOwnerExecutable
in interfaceSubTask
-
getUrl
@Exported public String getUrl()
- Specified by:
getUrl
in interfaceQueue.Task
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Specified by:
getDisplayName
in interfaceResourceActivity
-
getName
@Exported public String getName()
- Specified by:
getName
in interfaceQueue.Task
-
getFullDisplayName
@Exported public String getFullDisplayName()
- Specified by:
getFullDisplayName
in interfaceQueue.Task
-
getAffinityKey
public String 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.NoExternalUse.class) @CheckForNull public String getEnclosingLabel()
-
getEstimatedDuration
public long getEstimatedDuration()
- Specified by:
getEstimatedDuration
in interfaceSubTask
-
getResourceList
public ResourceList getResourceList()
- Specified by:
getResourceList
in interfaceResourceActivity
-
getDefaultAuthentication
@NonNull public Authentication getDefaultAuthentication()
- Specified by:
getDefaultAuthentication
in interfaceQueue.Task
-
getDefaultAuthentication
@NonNull public Authentication getDefaultAuthentication(Queue.Item item)
- Specified by:
getDefaultAuthentication
in interfaceQueue.Task
-
isContinued
public boolean isContinued()
- Specified by:
isContinued
in interfaceorg.jenkinsci.plugins.durabletask.executors.ContinuedTask
-
-