Class WorkspaceAction
java.lang.Object
org.jenkinsci.plugins.workflow.actions.WorkspaceAction
- All Implemented Interfaces:
Action
,ModelObject
,PersistentAction
Represents the fact that a step run on a particular workspace.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTheNode.getAssignedLabels()
of the node owning the workspace.abstract String
getNode()
TheNode.getNodeName()
of the workspace.abstract String
getPath()
TheFilePath.getRemote()
of the workspace.final FilePath
Reconstructs the live workspace, if possible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
WorkspaceAction
public WorkspaceAction()
-
-
Method Details
-
getNode
TheNode.getNodeName()
of the workspace. -
getPath
TheFilePath.getRemote()
of the workspace. -
getLabels
TheNode.getAssignedLabels()
of the node owning the workspace.Node.getSelfLabel()
should be exempted, so this set may be empty in the typical case. (Could be reconstructed in most cases viaJenkins.getNode(java.lang.String)
ongetNode()
, but not for an agent which has since been removed, common with clouds.) -
getWorkspace
Reconstructs the live workspace, if possible.
-