Skip to content

Commit 138bd2a

Browse files
breskebysarog
authored andcommitted
Run snyk check in periodic build for each development branch (elastic#133751) (elastic#133757)
we filter by regex for common name pattern of the dev branches to reduce risk of running from development branch. in reality those periodic builds are not likely to be triggered by developers so this is a good enough compromise. Branches that are not developed anymore will stay in snyk for now and require manual removal.
1 parent 8507626 commit 138bd2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.buildkite/pipelines/periodic.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ steps:
230230
image: family/elasticsearch-ubuntu-2404
231231
machineType: n2-standard-8
232232
buildDirectory: /dev/shm/bk
233-
if: build.branch == "main" || build.branch == "9.1" || build.branch == "9.0" || build.branch == "8.19" || build.branch == "8.18" || build.branch == "7.17"
233+
if: build.branch =~ /^(main|\d+\.\d+|\d+\.x)$/
234234
- label: check-branch-consistency
235235
command: .ci/scripts/run-gradle.sh branchConsistency
236236
timeout_in_minutes: 15

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ steps:
953953
image: family/elasticsearch-ubuntu-2404
954954
machineType: n2-standard-8
955955
buildDirectory: /dev/shm/bk
956-
if: build.branch == "main" || build.branch == "9.1" || build.branch == "9.0" || build.branch == "8.19" || build.branch == "8.18" || build.branch == "7.17"
956+
if: build.branch =~ /^(main|\d+\.\d+|\d+\.x)$/
957957
- label: check-branch-consistency
958958
command: .ci/scripts/run-gradle.sh branchConsistency
959959
timeout_in_minutes: 15

0 commit comments

Comments
 (0)