File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/test/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,7 @@ public void evaluate() throws Throwable {
585585 @ Override
586586 public void evaluate () throws Throwable {
587587 WorkflowRun run = story .j .jenkins .getItemByFullName ("durableAgainstClean" , WorkflowJob .class ).getLastBuild ();
588+ if (run == null ) { return ; } //there is a small chance due to non atomic write that build.xml will be empty and the run won't load at all
588589 verifyFailedCleanly (story .j .jenkins , run );
589590 story .j .assertLogContains (logStart [0 ], run );
590591 }
@@ -616,6 +617,7 @@ public void evaluate() throws Throwable {
616617 @ Override
617618 public void evaluate () throws Throwable {
618619 WorkflowRun run = story .j .jenkins .getItemByFullName ("durableAgainstClean" , WorkflowJob .class ).getLastBuild ();
620+ if (run == null ) { return ; } //there is a small chance due to non atomic write that build.xml will be empty and the run won't load at all
619621 verifyFailedCleanly (story .j .jenkins , run );
620622 story .j .assertLogContains (logStart [0 ], run );
621623 }
You can’t perform that action at this time.
0 commit comments