Skip to content

Commit ef1e9a5

Browse files
authored
add DRA version bump pipeline (#6343)
* add DRA version bump pipeline * update slack notification, update slack channel * refactor variables * add version bump pipeline to catalog * update image to use wolfi based container
1 parent ae51fc7 commit ef1e9a5

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
notify:
2+
- slack:
3+
channels:
4+
- "#ingest-notifications"
5+
if: (build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/) && (build.state == 'passed' || build.state == 'failed')
6+
- slack:
7+
channels:
8+
- "#ingest-notifications"
9+
message: |
10+
🚦 Pipeline waiting for approval 🚦
11+
Repo: `${REPO}`
12+
13+
Ready to fetch DRA artifacts - please unblock when ready.
14+
New version: `${NEW_VERSION}`
15+
Branch: `${BRANCH}`
16+
Workflow: `${WORKFLOW}`
17+
${BUILDKITE_BUILD_URL}
18+
if: build.state == "blocked"
19+
20+
steps:
21+
# TODO: replace this block step by real version bump logic
22+
- block: "Ready to fetch for DRA artifacts?"
23+
prompt: |
24+
Unblock when your team is ready to proceed.
25+
26+
Trigger parameters:
27+
- NEW_VERSION: ${NEW_VERSION}
28+
- BRANCH: ${BRANCH}
29+
- WORKFLOW: ${WORKFLOW}
30+
key: block-get-dra-artifacts
31+
blocked_state: running
32+
33+
- label: "Fetch DRA Artifacts"
34+
key: fetch-dra-artifacts
35+
depends_on: block-get-dra-artifacts
36+
agents:
37+
image: docker.elastic.co/release-eng/wolfi-build-essential-release-eng:latest
38+
cpu: 2
39+
memory: 4G
40+
ephemeralStorage: 10G
41+
command:
42+
- echo "Starting DRA artifacts retrieval..."
43+
timeout_in_minutes: 240
44+
retry:
45+
automatic:
46+
- exit_status: "*"
47+
limit: 2
48+
manual:
49+
permit_on_passed: true
50+
51+
plugins:
52+
- elastic/json-watcher#v1.0.0:
53+
url: "https://artifacts-staging.elastic.co/fleet-server/latest/${BRANCH}.json"
54+
field: ".version"
55+
expected_value: "${NEW_VERSION}"
56+
polling_interval: "30"
57+
- elastic/json-watcher#v1.0.0:
58+
url: "https://storage.googleapis.com/elastic-artifacts-snapshot/fleet-server/latest/${BRANCH}.json"
59+
field: ".version"
60+
expected_value: "${NEW_VERSION}-SNAPSHOT"
61+
polling_interval: "30"

catalog-info.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,45 @@ spec:
213213
access_level: MANAGE_BUILD_AND_READ
214214
everyone:
215215
access_level: READ_ONLY
216+
217+
---
218+
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
219+
apiVersion: backstage.io/v1alpha1
220+
kind: Resource
221+
metadata:
222+
name: buildkite-pipeline-fleet-server-version-bump
223+
description: Buildkite pipeline for the Elastic Fleet Server version bump
224+
links:
225+
- title: Pipeline
226+
url: https://buildkite.com/elastic/fleet-server-version-bump
227+
228+
spec:
229+
type: buildkite-pipeline
230+
owner: group:ingest-fp
231+
system: buildkite
232+
implementation:
233+
apiVersion: buildkite.elastic.dev/v1
234+
kind: Pipeline
235+
metadata:
236+
name: fleet-server-version-bump
237+
description: Buildkite pipeline for the Elastic Fleet Server version bump
238+
spec:
239+
repository: elastic/fleet-server
240+
pipeline_file: ".buildkite/pipeline.version-bump.yaml"
241+
provider_settings:
242+
build_branches: false
243+
build_pull_requests: false
244+
trigger_mode: none
245+
cancel_intermediate_builds: true
246+
cancel_intermediate_builds_branch_filter: '!main !8.* !9.*'
247+
skip_intermediate_builds: true
248+
skip_intermediate_builds_branch_filter: '!main !8.* !9.*'
249+
teams:
250+
ingest-fp:
251+
access_level: MANAGE_BUILD_AND_READ
252+
observablt-ci:
253+
access_level: MANAGE_BUILD_AND_READ
254+
release-eng:
255+
access_level: BUILD_AND_READ
256+
everyone:
257+
access_level: READ_ONLY

0 commit comments

Comments
 (0)