Skip to content

Commit

Permalink
[buildkite] Move periodic pipeline schedule to a separate trigger job…
Browse files Browse the repository at this point in the history
…, and add the other branches (elastic#98068)
  • Loading branch information
brianseeders authored Aug 4, 2023
1 parent fa5caec commit f125540
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .buildkite/pipelines/periodic.trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:
- trigger: elasticsearch-periodic
label: Trigger periodic pipeline for main
async: true
build:
branch: main
- trigger: elasticsearch-periodic
label: Trigger periodic pipeline for 8.9
async: true
build:
branch: "8.9"
- trigger: elasticsearch-periodic
label: Trigger periodic pipeline for 7.17
async: true
build:
branch: "7.17"
38 changes: 36 additions & 2 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,41 @@ spec:
elasticsearch-team: {}
ml-core: {}
everyone:
access_level: READ_ONLY
access_level: BUILD_AND_READ
provider_settings:
build_branches: false
build_pull_requests: false
publish_commit_status: false
trigger_mode: none
---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: buildkite-pipeline-elasticsearch-periodic-trigger
description: Triggers periodic pipeline for all required branches
links:
- title: Pipeline
url: https://buildkite.com/elastic/elasticsearch-periodic-trigger
spec:
type: buildkite-pipeline
system: buildkite
owner: group:elasticsearch-team
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
description: ":elasticsearch: Triggers periodic pipeline for all required branches"
name: elasticsearch / periodic / trigger
spec:
repository: elastic/elasticsearch
pipeline_file: .buildkite/pipelines/periodic.trigger.yml
branch_configuration: main
teams:
elasticsearch-team: {}
ml-core: {}
everyone:
access_level: BUILD_AND_READ
provider_settings:
build_branches: false
build_pull_requests: false
Expand All @@ -102,4 +136,4 @@ spec:
Periodically on main:
branch: main
cronline: "0 0,8,16 * * * America/New_York"
message: "Tests and checks that are run 3x daily"
message: "Triggers pipelines 3x daily"

0 comments on commit f125540

Please sign in to comment.