Skip to content

Commit 1b2ce0e

Browse files
committed
Lambda was trying to capturing a non-serializable class CurveMetaStep
1 parent 16ae2a8 commit 1b2ce0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/test/java/org/jenkinsci/plugins/workflow/testMetaStep/CurveMetaStep.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class CurveMetaStep extends Step {
4343
}
4444

4545
@Override public StepExecution start(StepContext context) throws Exception {
46-
return StepExecutions.block(context, (c, invoker) -> c.get(TaskListener.class).getLogger().println("wrapping in a " + curve.getDescription()));
46+
String description = curve.getDescription();
47+
return StepExecutions.block(context, (c, invoker) -> c.get(TaskListener.class).getLogger().println("wrapping in a " + description));
4748
}
4849

4950
@Extension public static class DescriptorImpl extends StepDescriptor {

0 commit comments

Comments
 (0)