Skip to content

Commit e8f41bb

Browse files
Chore: update packaging pipeline to run automatically on 8.x branch (elastic#40915)
1 parent f934ab8 commit e8f41bb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.buildkite/packaging.pipeline.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ steps:
1717
# this prevents parallel builds and possibility of publishing out of order DRA artifacts if the first job takes longer than the second
1818

1919
- name: Start of concurrency group for DRA Snapshot
20-
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
20+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
2121
command: echo "--> Start of concurrency gate dra-snapshot"
2222
concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH"
2323
concurrency: 1
2424
key: start-gate-snapshot
2525

2626
- name: Start of concurrency group for DRA Staging
27-
if: build.branch =~ /^\d+\.\d+$$/
27+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/
2828
command: echo "--> Start of concurrency gate dra-staging"
2929
concurrency_group: "dra-gate-staging-$BUILDKITE_BRANCH"
3030
concurrency: 1
@@ -36,7 +36,7 @@ steps:
3636
key: dashboards
3737
steps:
3838
- label: Snapshot dashboards
39-
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
39+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
4040
depends_on: start-gate-snapshot
4141
key: dashboards-snapshot
4242
# TODO: container with go and make
@@ -58,7 +58,7 @@ steps:
5858
- build/distributions/**/*
5959

6060
- label: Staging dashboards
61-
if: build.branch =~ /^\d+\.\d+$$/
61+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/
6262
depends_on: start-gate-staging
6363
key: dashboards-staging
6464
# TODO: container with go and make
@@ -80,7 +80,7 @@ steps:
8080
- build/distributions/**/*
8181

8282
- group: Packaging snapshot
83-
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
83+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
8484
key: packaging-snapshot
8585
depends_on: start-gate-snapshot
8686
steps:
@@ -169,7 +169,7 @@ steps:
169169
key: packaging-staging
170170
depends_on: start-gate-staging
171171
## Only for release
172-
if: build.branch =~ /^\d+\.\d+$$/
172+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/
173173
steps:
174174
- label: "STAGING: {{matrix}}"
175175
env:
@@ -257,7 +257,7 @@ steps:
257257
steps:
258258
- label: DRA Snapshot
259259
## Only for release branches and main
260-
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
260+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
261261
key: dra-snapshot
262262
env:
263263
DRA_WORKFLOW: snapshot
@@ -276,7 +276,7 @@ steps:
276276

277277
- label: DRA Staging
278278
## Only for release branches
279-
if: build.branch =~ /^\d+\.\d+$$/
279+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/
280280
key: dra-staging
281281
env:
282282
DRA_WORKFLOW: staging
@@ -296,13 +296,13 @@ steps:
296296
- wait
297297

298298
- command: echo "End of concurrency gate dra-snapshot <--"
299-
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
299+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
300300
concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH"
301301
concurrency: 1
302302
key: end-gate-snapshot
303303

304304
- command: echo "End of concurrency gate dra-staging <--"
305-
if: build.branch =~ /^\d+\.\d+$$/
305+
if: build.branch =~ /^[0-9]+\.[0-9x]+\$/
306306
concurrency_group: "dra-gate-staging-$BUILDKITE_BRANCH"
307307
concurrency: 1
308308
key: end-gate-staging

0 commit comments

Comments
 (0)