Skip to content

Commit 7b1c97c

Browse files
authored
Add new pipeline to test elastic-package with integrations repository (#1275)
1 parent f2e5bf4 commit 7b1c97c

File tree

3 files changed

+76
-2
lines changed

3 files changed

+76
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
env:
2+
GOLANG_VERSION: "1.20.3"
3+
4+
steps:
5+
- label: ":go: Run check-static"
6+
key: check-static
7+
command: "make check-static"
8+
agents:
9+
image: "golang:${GOLANG_VERSION}"
10+
cpu: "8"
11+
memory: "4G"
12+

.buildkite/pull-requests.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@
3131
"skip_target_branches": [ ],
3232
"skip_ci_on_only_changed": [ ],
3333
"always_require_ci_on_changed": [ ]
34+
},
35+
{
36+
"enabled": true,
37+
"pipelineSlug": "elastic-package-test-with-integrations",
38+
"allow_org_users": true,
39+
"allowed_repo_permissions": ["admin", "write"],
40+
"allowed_list": [ ],
41+
"set_commit_status": false,
42+
"build_on_commit": false,
43+
"build_on_comment": true,
44+
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:test)\\W+(?:integrations))$",
45+
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:test)\\W+(?:integrations))$",
46+
"skip_ci_labels": [ ],
47+
"skip_target_branches": [ ],
48+
"skip_ci_on_only_changed": [ ],
49+
"always_require_ci_on_changed": [ ]
3450
}
3551
]
3652
}

catalog-info.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ apiVersion: backstage.io/v1alpha1
6969
kind: Resource
7070
metadata:
7171
name: buildkite-pipeline-elastic-package-package-storage-publish
72-
description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)'
72+
description: 'Minimal pipeline to exercise publishing a package to Package Storage (for testing only)'
7373
links:
7474
- title: Pipeline
7575
url: https://buildkite.com/elastic/elastic-package-package-storage-publish
@@ -83,7 +83,7 @@ spec:
8383
kind: Pipeline
8484
metadata:
8585
name: elastic-package-package-storage-publish
86-
description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)'
86+
description: 'Minimal pipeline to exercise publishing a package to Package Storage (for testing only)'
8787
spec:
8888
branch_configuration: main
8989
pipeline_file: ".buildkite/pipeline.package-storage-publish.yml"
@@ -106,3 +106,49 @@ spec:
106106
access_level: MANAGE_BUILD_AND_READ
107107
everyone:
108108
access_level: READ_ONLY
109+
110+
---
111+
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
112+
apiVersion: backstage.io/v1alpha1
113+
kind: Resource
114+
metadata:
115+
name: buildkite-pipeline-elastic-package-test-with-integrations
116+
description: 'Buildkite pipeline to run specific elastic-package version with all packages in integrations repository'
117+
links:
118+
- title: Pipeline
119+
url: https://buildkite.com/elastic/elastic-package-test-with-integrations
120+
121+
spec:
122+
type: buildkite-pipeline
123+
owner: group:ingest-fp
124+
system: buildkite
125+
implementation:
126+
apiVersion: buildkite.elastic.dev/v1
127+
kind: Pipeline
128+
metadata:
129+
name: elastic-package-test-with-integrations
130+
description: 'Buildkite pipeline to run specific elastic-package version with all packages in integrations repository'
131+
spec:
132+
branch_configuration: main
133+
pipeline_file: ".buildkite/pipeline.test-with-integrations-repo.yml"
134+
provider_settings:
135+
build_tags: false # just run on demand
136+
build_branches: false # just run on demand
137+
publish_commit_status: false # do not update status of commits for this pipeline
138+
build_pull_request_forks: false
139+
build_pull_requests: true # requires filter_enabled and filter_condition settings as below when used with buildkite-pr-bot
140+
filter_enabled: true
141+
filter_condition: |
142+
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
143+
repository: elastic/elastic-package
144+
cancel_intermediate_builds: true
145+
cancel_intermediate_builds_branch_filter: '!main'
146+
skip_intermediate_builds: true
147+
skip_intermediate_builds_branch_filter: '!main'
148+
teams:
149+
ecosystem:
150+
access_level: MANAGE_BUILD_AND_READ
151+
ingest-fp:
152+
access_level: MANAGE_BUILD_AND_READ
153+
everyone:
154+
access_level: READ_ONLY

0 commit comments

Comments
 (0)