Skip to content

Commit 73c7b61

Browse files
committed
same check for failsWithBogusStorageFile
1 parent bb16392 commit 73c7b61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/org/jenkinsci/plugins/workflow/cps/FlowDurabilityTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ public void evaluate() throws Throwable {
617617
@Override
618618
public void evaluate() throws Throwable {
619619
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
620621
verifyFailedCleanly(story.j.jenkins, run);
621622
story.j.assertLogContains(logStart[0], run);
622623
}

0 commit comments

Comments
 (0)