Skip to content

Commit d063a17

Browse files
authored
[ci] Don't run snyk step outside of main dev branches (#101729) (#101745)
(cherry picked from commit c13350c)
1 parent a2b5762 commit d063a17

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.buildkite/pipelines/periodic.template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ steps:
180180
image: family/elasticsearch-ubuntu-2004
181181
machineType: n2-standard-8
182182
buildDirectory: /dev/shm/bk
183+
if: build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+\$/
183184
- label: Check branch consistency
184185
command: .ci/scripts/run-gradle.sh branchConsistency
185186
timeout_in_minutes: 15

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,7 @@ steps:
12311231
image: family/elasticsearch-ubuntu-2004
12321232
machineType: n2-standard-8
12331233
buildDirectory: /dev/shm/bk
1234+
if: build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+\$/
12341235
- label: Check branch consistency
12351236
command: .ci/scripts/run-gradle.sh branchConsistency
12361237
timeout_in_minutes: 15

0 commit comments

Comments
 (0)