Class FilePathDynamicContext
java.lang.Object
org.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<FilePath>
org.jenkinsci.plugins.workflow.support.steps.FilePathDynamicContext
- All Implemented Interfaces:
ExtensionPoint
,org.jenkinsci.plugins.workflow.steps.DynamicContext
@Extension(ordinal=100.0)
public final class FilePathDynamicContext
extends org.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<FilePath>
Analogue of
FilePathPickle
.
Allows a step body to save a representation of a workspace
without forcing a particular FilePath.getChannel()
to be used the whole time.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.workflow.steps.DynamicContext
org.jenkinsci.plugins.workflow.steps.DynamicContext.DelegatedContext, org.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<T extends Object>
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.steps.DynamicContext.Typed
get
-
Constructor Details
-
FilePathDynamicContext
public FilePathDynamicContext()
-
-
Method Details
-
type
- Specified by:
type
in classorg.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<FilePath>
-
get
protected FilePath get(org.jenkinsci.plugins.workflow.steps.DynamicContext.DelegatedContext context) throws IOException, InterruptedException - Specified by:
get
in classorg.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<FilePath>
- Throws:
IOException
InterruptedException
-
createContextualObject
Deprecated. -
createContextualObject
public static Object createContextualObject(@NonNull FilePath f, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode n) - See Also:
-
BodyInvoker.withContext(java.lang.Object)
-
createContextualObject(FilePath, FlowNode)