Skip to content

Commit 5a65b56

Browse files
authored
Timeout on buildkite artifact upload but do not fail the build (#114430) (#114435)
this workarounds an issue we currently see on windows ci boxes where we run into timeouts in this step in our builds
1 parent 26fcc89 commit 5a65b56

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchBuildCompletePlugin.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,13 @@ public void execute(BuildFinishedFlowAction.Parameters parameters) throws FileNo
152152
// So, if you change this such that the artifact will have a slash/directory in it, you'll need to update the logic
153153
// below as well
154154
pb.directory(uploadFileDir);
155-
pb.start().waitFor();
155+
try {
156+
// we are very generious here, as the upload can take
157+
// a long time depending on its size
158+
pb.start().waitFor(30, java.util.concurrent.TimeUnit.MINUTES);
159+
} catch (InterruptedException e) {
160+
System.out.println("Failed to upload buildkite artifact " + e.getMessage());
161+
}
156162

157163
System.out.println("Generating buildscan link for artifact...");
158164

0 commit comments

Comments
 (0)