Skip to content

Commit 4169906

Browse files
committed
Flush overall Pipeline log stream when shutting down Jenkins
1 parent 201bd9f commit 4169906

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,7 @@ public void pause(final boolean v) throws IOException {
16941694
LOGGER.log(Level.WARNING, null, t);
16951695
}
16961696
});
1697+
cpsExec.getOwner().getListener().getLogger().close();
16971698
}
16981699
} catch (Exception ex) {
16991700
LOGGER.log(Level.WARNING, "Error persisting Pipeline execution at shutdown: "+((CpsFlowExecution) execution).owner, ex);

0 commit comments

Comments
 (0)