Class FlowCopier.ByRun
java.lang.Object
org.jenkinsci.plugins.workflow.flow.FlowCopier
org.jenkinsci.plugins.workflow.flow.FlowCopier.ByRun
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
FlowCopier.StandardActions,StashManager.CopyStashesAndArtifacts
- Enclosing class:
- FlowCopier
Convenience implementation that only operates on true builds.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.flow.FlowCopier
FlowCopier.ByRun, FlowCopier.StandardActionsNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcopy(Run<?, ?> original, Run<?, ?> copy, TaskListener listener) Copies metadata between builds.final voidcopy(FlowExecutionOwner original, FlowExecutionOwner copy) Copies any required metadata or files from one to another.
-
Constructor Details
-
ByRun
public ByRun()
-
-
Method Details
-
copy
public abstract void copy(Run<?, ?> original, Run<?, throws IOException, InterruptedException?> copy, TaskListener listener) Copies metadata between builds.- Parameters:
listener- a way of logging messages to the copy- Throws:
IOExceptionInterruptedException
-
copy
public final void copy(FlowExecutionOwner original, FlowExecutionOwner copy) throws IOException, InterruptedException Description copied from class:FlowCopierCopies any required metadata or files from one to another.- Specified by:
copyin classFlowCopier- Parameters:
original- an initial build, typically completecopy- a new build, typically not yet started- Throws:
IOExceptionInterruptedException
-