From 0b84bf14c3d3ce65f9fe57eadf0d23ef48c413f5 Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Mon, 29 Apr 2024 16:32:16 +0300 Subject: [PATCH] Add IronBank validation to cron schedule (#39255) (#39265) This commit is a follow up to #39254 and adds a schedule for the IronBank validation pipeline to the centralized scheduling pipeline. Relates: https://github.com/elastic/ingest-dev/issues/3235 Cherry-picked from a4b21dcd8435b80a97063e0e69a6d98aaba17d1a (backport of #39255) --- .buildkite/pipeline-scheduler.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .buildkite/pipeline-scheduler.yml diff --git a/.buildkite/pipeline-scheduler.yml b/.buildkite/pipeline-scheduler.yml new file mode 100644 index 00000000000..3f9b628bc63 --- /dev/null +++ b/.buildkite/pipeline-scheduler.yml @@ -0,0 +1,17 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +# this intermediate pipeline is required because we can't specify a custom agent (k8s image) yet +# in catalog-info: https://github.com/elastic/ci/blob/71e83d340e3b93ab43fcf16a7a70ac33bdeec6e9/terrazzo/terrazzo/constructs/buildkite/pipelines.py#L787-L842 + +steps: + - label: ":pipeline: Generate trigger steps for $PIPELINES_TO_TRIGGER" + command: | + set -eo pipefail + .buildkite/pipeline-scheduler.py >steps.yml + echo "~~~ Printing pipeline steps" + yq . steps.yml + echo "~~~ Uploading steps" + buildkite-agent pipeline upload steps.yml + agents: + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.1" + useCustomGlobalHooks: true