Class FlowCopier
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.flow.FlowCopier
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
FlowCopier.ByRun
public abstract class FlowCopier extends Object implements ExtensionPoint
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
Nested Classes Modifier and Type Class Description static class
FlowCopier.ByRun
Convenience implementation that only operates on true builds.static class
FlowCopier.StandardActions
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FlowCopier()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
copy(FlowExecutionOwner original, FlowExecutionOwner copy)
Copies any required metadata or files from one to another.
-
-
-
Method Detail
-
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
-
-