Class FlowCopier
java.lang.Object
org.jenkinsci.plugins.workflow.flow.FlowCopier
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
FlowCopier.ByRun
A way for plugins to copy metadata and associated files from one flow execution to another.
Useful when a new execution is not being created from scratch, but is a kind of clone of another.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Convenience implementation that only operates on true builds.static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
copy
(FlowExecutionOwner original, FlowExecutionOwner copy) Copies any required metadata or files from one to another.
-
Constructor Details
-
FlowCopier
public FlowCopier()
-
-
Method Details
-
copy
public abstract void copy(FlowExecutionOwner original, FlowExecutionOwner copy) throws IOException, InterruptedException Copies any required metadata or files from one to another.- Parameters:
original
- an initial build, typically completecopy
- a new build, typically not yet started- Throws:
IOException
InterruptedException
-