[lucene_snapshot] Fix schedules, set default branch, and pass branch to triggered builds (#98410)
This commit is contained in:
parent
6be476d3e1
commit
5ad8a79217
|
@ -17,4 +17,6 @@ steps:
|
|||
buildDirectory: /dev/shm/bk
|
||||
- wait
|
||||
- trigger: "elasticsearch-lucene-snapshot-tests"
|
||||
build:
|
||||
branch: "${BUILDKITE_BRANCH}"
|
||||
async: true
|
||||
|
|
|
@ -4,4 +4,6 @@ steps:
|
|||
timeout_in_minutes: 15
|
||||
- wait
|
||||
- trigger: "elasticsearch-lucene-snapshot-tests"
|
||||
build:
|
||||
branch: "${BUILDKITE_BRANCH}"
|
||||
async: true
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "$BUILDKITE_BRANCH" != "lucene_snapshot" ]]; then
|
||||
echo "Error: This script should only be run on the lucene_snapshot branch"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo --- Update Lucene snapshot in Elasticsearch
|
||||
|
||||
LUCENE_SNAPSHOT_VERSION=${LUCENE_SNAPSHOT_VERSION:-}
|
||||
|
|
|
@ -161,6 +161,7 @@ spec:
|
|||
repository: elastic/elasticsearch
|
||||
pipeline_file: .buildkite/pipelines/lucene-snapshot/build-snapshot.yml
|
||||
branch_configuration: lucene_snapshot
|
||||
default_branch: lucene_snapshot
|
||||
teams:
|
||||
elasticsearch-team: {}
|
||||
ml-core: {}
|
||||
|
@ -171,11 +172,11 @@ spec:
|
|||
build_pull_requests: false
|
||||
publish_commit_status: false
|
||||
trigger_mode: none
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 2 * * America/New_York"
|
||||
message: "Builds a new lucene snapshot 1x per day"
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 2 * * America/New_York"
|
||||
message: "Builds a new lucene snapshot 1x per day"
|
||||
---
|
||||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
|
@ -200,6 +201,7 @@ spec:
|
|||
repository: elastic/elasticsearch
|
||||
pipeline_file: .buildkite/pipelines/lucene-snapshot/update-branch.yml
|
||||
branch_configuration: lucene_snapshot
|
||||
default_branch: lucene_snapshot
|
||||
teams:
|
||||
elasticsearch-team: {}
|
||||
ml-core: {}
|
||||
|
@ -210,11 +212,11 @@ spec:
|
|||
build_pull_requests: false
|
||||
publish_commit_status: false
|
||||
trigger_mode: none
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 6 * * America/New_York"
|
||||
message: "Merges main into lucene_snapshot branch 1x per day"
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 6 * * America/New_York"
|
||||
message: "Merges main into lucene_snapshot branch 1x per day"
|
||||
---
|
||||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
|
@ -239,6 +241,7 @@ spec:
|
|||
repository: elastic/elasticsearch
|
||||
pipeline_file: .buildkite/pipelines/lucene-snapshot/run-tests.yml
|
||||
branch_configuration: lucene_snapshot
|
||||
default_branch: lucene_snapshot
|
||||
teams:
|
||||
elasticsearch-team: {}
|
||||
ml-core: {}
|
||||
|
@ -249,8 +252,8 @@ spec:
|
|||
build_pull_requests: false
|
||||
publish_commit_status: false
|
||||
trigger_mode: none
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 9,12,15,18 * * America/New_York"
|
||||
message: "Runs tests against lucene_snapshot branch several times per day"
|
||||
schedules:
|
||||
Periodically on lucene_snapshot:
|
||||
branch: lucene_snapshot
|
||||
cronline: "0 9,12,15,18 * * America/New_York"
|
||||
message: "Runs tests against lucene_snapshot branch several times per day"
|
||||
|
|
Loading…
Reference in New Issue