From df9694e1b62530ca2790878828abcedcd264da84 Mon Sep 17 00:00:00 2001 From: sharbuz <87968844+sharbuz@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:51:52 +0200 Subject: [PATCH] winlogbeat BK pipeline init (#37859) * winlogbeat BK pipeline init * Update catalog-info.yaml Co-authored-by: Victor Martinez --------- Co-authored-by: Victor Martinez --- .buildkite/pull-requests.json | 16 ++++++ .buildkite/winlogbeat/pipeline.winlogbeat.yml | 5 ++ catalog-info.yaml | 49 ++++++++++++++++++- 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 .buildkite/winlogbeat/pipeline.winlogbeat.yml diff --git a/.buildkite/pull-requests.json b/.buildkite/pull-requests.json index abe0d20f680..66c508e252c 100644 --- a/.buildkite/pull-requests.json +++ b/.buildkite/pull-requests.json @@ -143,6 +143,22 @@ "skip_target_branches": [ ], "skip_ci_on_only_changed": ["^x-pack/elastic-agent/README.md", "^x-pack/elastic-agent/docs/.*", "^x-pack/elastic-agent/devtools/.*" ], "always_require_ci_on_changed": ["^x-pack/elastic-agent/.*", ".buildkite/x-pack/elastic-agent/.*", "^go.mod", "^pytest.ini", "^dev-tools/.*", "^libbeat/.*", "^testing/.*"] + }, + { + "enabled": true, + "pipelineSlug": "beats-winlogbeat", + "allow_org_users": true, + "allowed_repo_permissions": ["admin", "write"], + "allowed_list": [ ], + "set_commit_status": true, + "build_on_commit": true, + "build_on_comment": true, + "trigger_comment_regex": "^/test winlogbeat$", + "always_trigger_comment_regex": "^/test winlogbeat$", + "skip_ci_labels": [ ], + "skip_target_branches": [ ], + "skip_ci_on_only_changed": [ ], + "always_require_ci_on_changed": ["^winlogbeat/.*", ".buildkite/winlogbeat/.*", "^go.mod", "^pytest.ini", "^dev-tools/.*", "^libbeat/.*", "^testing/.*"] } ] } diff --git a/.buildkite/winlogbeat/pipeline.winlogbeat.yml b/.buildkite/winlogbeat/pipeline.winlogbeat.yml new file mode 100644 index 00000000000..34321b61161 --- /dev/null +++ b/.buildkite/winlogbeat/pipeline.winlogbeat.yml @@ -0,0 +1,5 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +steps: + - label: "Example test" + command: echo "Hello!" diff --git a/catalog-info.yaml b/catalog-info.yaml index f3dd3094788..037d92e415c 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -413,9 +413,54 @@ spec: cancel_intermediate_builds: true cancel_intermediate_builds_branch_filter: "!main !7.17 !8.*" skip_intermediate_builds: true - skip_intermediate_builds_branch_filter: "!main !7.17 !8.*" + skip_intermediate_builds_branch_filter: "!main !7.17 !8.*" + teams: + ingest-fp: + access_level: MANAGE_BUILD_AND_READ + everyone: + access_level: READ_ONLY + +--- +# 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-beats-winlogbeat + description: "Beats winlogbeat pipeline" + links: + - title: Pipeline + url: https://buildkite.com/elastic/beats-winlogbeat + +spec: + type: buildkite-pipeline + owner: group:ingest-fp + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: beats-winlogbeat + description: "Beats winlogbeat pipeline" + spec: +# branch_configuration: "main 7.17 8.*" TODO: temporarily commented to build PRs from forks + pipeline_file: ".buildkite/winlogbeat/pipeline.winlogbeat.yml" +# maximum_timeout_in_minutes: 120 TODO: uncomment when pipeline is ready + provider_settings: + build_pull_request_forks: false + build_pull_requests: true # requires filter_enabled and filter_condition settings as below when used with buildkite-pr-bot + build_tags: true + filter_enabled: true + filter_condition: >- + build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null) + repository: elastic/beats + cancel_intermediate_builds: true + cancel_intermediate_builds_branch_filter: "!main !7.17 !8.*" + skip_intermediate_builds: true + skip_intermediate_builds_branch_filter: "!main !7.17 !8.*" + # env: + # ELASTIC_PR_COMMENTS_ENABLED: "true" TODO: uncomment when pipeline is ready teams: ingest-fp: access_level: MANAGE_BUILD_AND_READ everyone: - access_level: READ_ONLY \ No newline at end of file + access_level: READ_ONLY