Skip to content

Commit 9b8fdfc

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

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
@@ -159,6 +159,7 @@ steps:
159159
image: family/elasticsearch-ubuntu-2004
160160
machineType: n2-standard-8
161161
buildDirectory: /dev/shm/bk
162+
if: build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+\$/
162163
- label: Check branch consistency
163164
command: .ci/scripts/run-gradle.sh branchConsistency
164165
timeout_in_minutes: 15

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ steps:
13501350
image: family/elasticsearch-ubuntu-2004
13511351
machineType: n2-standard-8
13521352
buildDirectory: /dev/shm/bk
1353+
if: build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+\$/
13531354
- label: Check branch consistency
13541355
command: .ci/scripts/run-gradle.sh branchConsistency
13551356
timeout_in_minutes: 15

0 commit comments

Comments
 (0)