File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/org/jenkinsci/plugins/workflow/log Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ public interface LogStorage {
125125 default @ Nonnull File getLogFile (@ Nonnull FlowExecutionOwner .Executable build , boolean complete ) {
126126 try {
127127 AnnotatedLargeText <FlowExecutionOwner .Executable > logText = overallLog (build , complete );
128- File f = File .createTempFile ("deprecated" , ".log" , build instanceof Run ? ((Run ) build ).getRootDir () : null );
128+ FlowExecutionOwner owner = build .asFlowExecutionOwner ();
129+ File f = File .createTempFile ("deprecated" , ".log" , owner != null ? owner .getRootDir () : null );
129130 f .deleteOnExit ();
130131 try (OutputStream os = new FileOutputStream (f )) {
131132 // Similar to Run#writeWholeLogTo but terminates even if !complete:
You can’t perform that action at this time.
0 commit comments