Skip to content

Commit 4b7467b

Browse files
v1vPavel Zorinalexsapran
authored
Beats pipeline generator (#38162)
This commit introduces a main pipeline generator similar to the one used with Jenkins #20104 to help with the migration to Buildkite. Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co> Co-authored-by: Alexandros Sapranidis <alexandros@elastic.co>
1 parent c6fd99c commit 4b7467b

8 files changed

Lines changed: 605 additions & 5 deletions

File tree

.buildkite/auditbeat/scripts/unit-tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ set -euo pipefail
55
echo "--- Running Unit Tests"
66
sudo chmod -R go-w auditbeat/
77

8-
cd auditbeat
98
umask 0022
10-
mage build unitTest
9+
mage -d auditbeat build unitTest

.buildkite/buildkite.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
projects:
2+
- "auditbeat"
3+
- "deploy/kubernetes"
4+
- "filebeat"
5+
- "heartbeat"
6+
- "libbeat"
7+
- "metricbeat"
8+
- "packetbeat"
9+
- "winlogbeat"
10+
- "x-pack/auditbeat"
11+
- "x-pack/dockerlogbeat"
12+
- "x-pack/filebeat"
13+
- "x-pack/functionbeat"
14+
- "x-pack/heartbeat"
15+
- "x-pack/libbeat"
16+
- "x-pack/metricbeat"
17+
- "x-pack/osquerybeat"
18+
- "x-pack/packetbeat"
19+
- "x-pack/winlogbeat"
20+
21+
## Changeset macros that are defined here and used in each specific 3.0 pipeline.
22+
changeset:
23+
ci:
24+
- "^Jenkinsfile"
25+
- "^\\.ci/scripts/.*"
26+
oss:
27+
- "^go.mod"
28+
- "^pytest.ini"
29+
- "^dev-tools/.*"
30+
- "^libbeat/.*"
31+
- "^testing/.*"
32+
xpack:
33+
- "^go.mod"
34+
- "^pytest.ini"
35+
- "^dev-tools/.*"
36+
- "^libbeat/.*"
37+
- "^testing/.*"
38+
- "^x-pack/libbeat/.*"
39+
40+
disabled:
41+
when:
42+
labels: ## Skip the GitHub Pull Request builds if any of the given GitHub labels match with the assigned labels in the PR.
43+
- skip-ci
44+
draft: true ## Skip the GitHub Pull Request builds with Draft PRs.

.buildkite/hooks/pre-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ retry() {
2929
return 0
3030
}
3131

32-
if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" || "$BUILDKITE_PIPELINE_SLUG" == "deploy-k8s" ]]; then
32+
33+
if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" || "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" || "$BUILDKITE_PIPELINE_SLUG" == "deploy-k8s" ]]; then
3334
source .buildkite/env-scripts/env.sh
3435
source .buildkite/env-scripts/util.sh
3536

0 commit comments

Comments
 (0)