Skip to content

Commit

Permalink
Buidlkite introduction: metricbeats (#37260)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-ri authored Dec 4, 2023
1 parent 4c416d7 commit 2e9f1d4
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
@@ -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!"
16 changes: 16 additions & 0 deletions .buildkite/pull-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ ],
"always_require_ci_on_changed": [ ]
},
{
"enabled": true,
"pipelineSlug": "beats-metricbeat",
"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 metricbeat$",
"always_trigger_comment_regex": "^/test metricbeat$",
"skip_ci_labels": [ ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ ],
"always_require_ci_on_changed": [ "^metricbeat/.*", ".buildkite/metricbeat/.*", "^go.mod", "^pytest.ini", "^dev-tools/.*", "^libbeat/.*", "^testing/.*"]
}
]
}
50 changes: 48 additions & 2 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: beats
description: :tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
description: ":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash"
links:
- title: Beats Documentation
icon: file-doc
Expand All @@ -18,7 +18,7 @@ spec:
lifecycle: production

---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
Expand Down Expand Up @@ -62,6 +62,52 @@ spec:
everyone:
access_level: READ_ONLY

---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: buildkite-pipeline-metricbeat
description: 'Beats: Metricbeat pipeline'
links:
- title: Pipeline
url: https://buildkite.com/elastic/beats-metricbeat

spec:
type: buildkite-pipeline
owner: group:ingest-fp
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: beats-metricbeat
description: 'Beats Metricbeat pipeline'
spec:
branch_configuration: "main 7.* 8.* v7.* v8.*"
pipeline_file: ".buildkite/metricbeat/pipeline.yml"
maximum_timeout_in_minutes: 120
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.* !8.*'
skip_intermediate_builds: true
skip_intermediate_builds_branch_filter: '!main !7.* !8.*'
# TODO uncomment this environment variable when pipeline definition is updated
# env:
# ELASTIC_PR_COMMENTS_ENABLED: 'true'
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
Expand Down

0 comments on commit 2e9f1d4

Please sign in to comment.