Skip to content

Commit 1c0caed

Browse files
authored
Merge pull request #25 from mashhurs/bk-pr-pipeline-setup
Bk pr pipeline setup
2 parents f3c5cc1 + ffdc347 commit 1c0caed

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- label: "Pull request pipeline"
2+
command: |
3+
#!/usr/bin/env bash
4+
set -eo pipefail
5+
echo "--- Pull request pipeline preparation"

catalog-info.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# ***********************************
2+
# SECTION START: Pull Request pipeline
3+
# ***********************************
4+
5+
---
6+
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
7+
apiVersion: backstage.io/v1alpha1
8+
kind: Resource
9+
metadata:
10+
name: logstash-input-stdin-pull-request
11+
description: 'A pipeline for Logstash stdin plugin'
12+
links:
13+
- title: 'Logstash stdin pull request pipeline'
14+
url: https://buildkite.com/logstash-plugins/logstash-input-stdin-pull-request
15+
spec:
16+
owner: group:logstash
17+
type: buildkite-pipeline
18+
system: platform-ingest
19+
implementation:
20+
apiVersion: buildkite.elastic.dev/v1
21+
kind: Pipeline
22+
metadata:
23+
description: ':logstash: Test `stdin` pull request :pipeline:'
24+
name: logstash-input-stdin-pull-request
25+
spec:
26+
pipeline_file: .buildkite/pull-request-pipeline.yml
27+
maximum_timeout_in_minutes: 120
28+
repository: logstash-plugins/logstash-input-stdin
29+
provider_settings:
30+
build_pull_requests: true
31+
build_pull_request_forks: false
32+
build_branches: false
33+
build_tags: false
34+
filter_enabled: true
35+
filter_condition: >-
36+
build.creator.name == 'elasticmachine' && build.pull_request.id != null
37+
cancel_intermediate_builds: true
38+
skip_intermediate_builds: true
39+
env:
40+
ELASTIC_PR_COMMENTS_ENABLED: 'true'
41+
teams:
42+
logstash:
43+
access_level: MANAGE_BUILD_AND_READ
44+
ingest-fp:
45+
access_level: MANAGE_BUILD_AND_READ
46+
ingest-eng-prod:
47+
access_level: MANAGE_BUILD_AND_READ
48+
everyone:
49+
access_level: READ_ONLY
50+

0 commit comments

Comments
 (0)