Skip to content

Commit a2426c0

Browse files
committed
Throw an exception when trying to save actions for a FlowNode on a completed execution
1 parent 3b5707f commit a2426c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,8 @@ public List<Action> loadActions(FlowNode node) throws IOException {
12761276
public void saveActions(FlowNode node, List<Action> actions) throws IOException {
12771277
if (storage == null) {
12781278
throw new IOException("storage not yet loaded");
1279+
} else if (isComplete()) {
1280+
throw new IOException("Cannot save actions for " + node + " on completed execution " + this + ": " + actions);
12791281
}
12801282
storage.saveActions(node, actions);
12811283
}

0 commit comments

Comments
 (0)