Skip to content

Commit 537172e

Browse files
committed
Allow jobs in periodic build to retry
1 parent 69cec64 commit 537172e

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.buildkite/pipelines/periodic.bwc.template.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
signal_reason: none
1717
- signal_reason: agent_stop
1818
limit: 3
19+
- exit_status: "1"
20+
limit: 2

.buildkite/pipelines/periodic.template.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ steps:
124124
- label: release-tests
125125
command: .buildkite/scripts/release-tests.sh
126126
timeout_in_minutes: 360
127+
retry:
128+
automatic:
129+
- exit_status: "-1"
130+
limit: 3
131+
signal_reason: none
132+
- signal_reason: agent_stop
133+
limit: 3
134+
- exit_status: "1"
135+
limit: 2
127136
agents:
128137
provider: gcp
129138
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ steps:
3939
signal_reason: none
4040
- signal_reason: agent_stop
4141
limit: 3
42+
- exit_status: "-1"
43+
limit: 2
4244

4345
- label: 8.2.3 / bwc
4446
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.2.3#bwcTest
@@ -58,6 +60,8 @@ steps:
5860
signal_reason: none
5961
- signal_reason: agent_stop
6062
limit: 3
63+
- exit_status: "-1"
64+
limit: 2
6165

6266
- label: 8.3.3 / bwc
6367
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.3.3#bwcTest
@@ -77,6 +81,8 @@ steps:
7781
signal_reason: none
7882
- signal_reason: agent_stop
7983
limit: 3
84+
- exit_status: "1"
85+
limit: 2
8086

8187
- label: 8.4.3 / bwc
8288
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.4.3#bwcTest
@@ -96,6 +102,8 @@ steps:
96102
signal_reason: none
97103
- signal_reason: agent_stop
98104
limit: 3
105+
- exit_status: "1"
106+
limit: 2
99107

100108
- label: 8.5.3 / bwc
101109
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.5.3#bwcTest
@@ -115,6 +123,8 @@ steps:
115123
signal_reason: none
116124
- signal_reason: agent_stop
117125
limit: 3
126+
- exit_status: "1"
127+
limit: 2
118128

119129
- label: 8.6.2 / bwc
120130
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.6.2#bwcTest
@@ -134,6 +144,8 @@ steps:
134144
signal_reason: none
135145
- signal_reason: agent_stop
136146
limit: 3
147+
- exit_status: "1"
148+
limit: 2
137149

138150
- label: 8.7.1 / bwc
139151
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.7.1#bwcTest
@@ -153,6 +165,8 @@ steps:
153165
signal_reason: none
154166
- signal_reason: agent_stop
155167
limit: 3
168+
- exit_status: "1"
169+
limit: 2
156170

157171
- label: 8.8.2 / bwc
158172
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.8.2#bwcTest
@@ -172,6 +186,8 @@ steps:
172186
signal_reason: none
173187
- signal_reason: agent_stop
174188
limit: 3
189+
- exit_status: "1"
190+
limit: 2
175191

176192
- label: 8.9.2 / bwc
177193
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.9.2#bwcTest
@@ -191,6 +207,8 @@ steps:
191207
signal_reason: none
192208
- signal_reason: agent_stop
193209
limit: 3
210+
- exit_status: "1"
211+
limit: 2
194212

195213
- label: 8.10.4 / bwc
196214
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.10.4#bwcTest
@@ -210,6 +228,8 @@ steps:
210228
signal_reason: none
211229
- signal_reason: agent_stop
212230
limit: 3
231+
- exit_status: "1"
232+
limit: 2
213233

214234
- label: 8.11.4 / bwc
215235
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.11.4#bwcTest
@@ -229,6 +249,8 @@ steps:
229249
signal_reason: none
230250
- signal_reason: agent_stop
231251
limit: 3
252+
- exit_status: "1"
253+
limit: 2
232254

233255
- label: 8.12.2 / bwc
234256
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.12.2#bwcTest
@@ -248,6 +270,8 @@ steps:
248270
signal_reason: none
249271
- signal_reason: agent_stop
250272
limit: 3
273+
- exit_status: "1"
274+
limit: 2
251275

252276
- label: 8.13.4 / bwc
253277
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.13.4#bwcTest
@@ -267,6 +291,8 @@ steps:
267291
signal_reason: none
268292
- signal_reason: agent_stop
269293
limit: 3
294+
- exit_status: "1"
295+
limit: 2
270296

271297
- label: 8.14.3 / bwc
272298
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.14.3#bwcTest
@@ -286,6 +312,8 @@ steps:
286312
signal_reason: none
287313
- signal_reason: agent_stop
288314
limit: 3
315+
- exit_status: "1"
316+
limit: 2
289317

290318
- label: 8.15.5 / bwc
291319
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.15.5#bwcTest
@@ -305,6 +333,8 @@ steps:
305333
signal_reason: none
306334
- signal_reason: agent_stop
307335
limit: 3
336+
- exit_status: "1"
337+
limit: 2
308338

309339
- label: 8.16.6 / bwc
310340
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.16.6#bwcTest
@@ -324,6 +354,8 @@ steps:
324354
signal_reason: none
325355
- signal_reason: agent_stop
326356
limit: 3
357+
- exit_status: "1"
358+
limit: 2
327359

328360
- label: 8.17.10 / bwc
329361
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.17.10#bwcTest
@@ -343,6 +375,8 @@ steps:
343375
signal_reason: none
344376
- signal_reason: agent_stop
345377
limit: 3
378+
- exit_status: "1"
379+
limit: 2
346380

347381
- label: 8.18.9 / bwc
348382
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.18.9#bwcTest
@@ -362,6 +396,8 @@ steps:
362396
signal_reason: none
363397
- signal_reason: agent_stop
364398
limit: 3
399+
- exit_status: "1"
400+
limit: 2
365401

366402
- label: 8.19.6 / bwc
367403
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.19.6#bwcTest
@@ -381,6 +417,8 @@ steps:
381417
signal_reason: none
382418
- signal_reason: agent_stop
383419
limit: 3
420+
- exit_status: "1"
421+
limit: 2
384422

385423
- label: 9.0.9 / bwc
386424
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.0.9#bwcTest
@@ -400,6 +438,8 @@ steps:
400438
signal_reason: none
401439
- signal_reason: agent_stop
402440
limit: 3
441+
- exit_status: "1"
442+
limit: 2
403443

404444
- label: 9.1.6 / bwc
405445
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.1.6#bwcTest
@@ -419,6 +459,8 @@ steps:
419459
signal_reason: none
420460
- signal_reason: agent_stop
421461
limit: 3
462+
- exit_status: "1"
463+
limit: 2
422464

423465
- label: 9.2.0 / bwc
424466
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.2.0#bwcTest
@@ -438,6 +480,8 @@ steps:
438480
signal_reason: none
439481
- signal_reason: agent_stop
440482
limit: 3
483+
- exit_status: "1"
484+
limit: 2
441485

442486
- label: 9.3.0 / bwc
443487
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.3.0#bwcTest
@@ -457,6 +501,8 @@ steps:
457501
signal_reason: none
458502
- signal_reason: agent_stop
459503
limit: 3
504+
- exit_status: "1"
505+
limit: 2
460506

461507
- label: concurrent-search-tests
462508
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true functionalTests
@@ -581,6 +627,15 @@ steps:
581627
- label: release-tests
582628
command: .buildkite/scripts/release-tests.sh
583629
timeout_in_minutes: 360
630+
retry:
631+
automatic:
632+
- exit_status: "-1"
633+
limit: 3
634+
signal_reason: none
635+
- signal_reason: agent_stop
636+
limit: 3
637+
- exit_status: "1"
638+
limit: 2
584639
agents:
585640
provider: gcp
586641
image: family/elasticsearch-ubuntu-2404

0 commit comments

Comments
 (0)