Skip to content

Commit

Permalink
Beats pipeline generator (#38162)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 4b7467b)

# Conflicts:
#	.buildkite/hooks/pre-command
  • Loading branch information
v1v authored and mergify[bot] committed Mar 20, 2024
1 parent d57e4d2 commit 0089fb3
Show file tree
Hide file tree
Showing 8 changed files with 608 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .buildkite/auditbeat/scripts/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ source .buildkite/env-scripts/linux-env.sh
echo "--- Running Unit Tests"
sudo chmod -R go-w auditbeat/

cd auditbeat
umask 0022
mage build unitTest
mage -d auditbeat build unitTest
44 changes: 44 additions & 0 deletions .buildkite/buildkite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
projects:
- "auditbeat"
- "deploy/kubernetes"
- "filebeat"
- "heartbeat"
- "libbeat"
- "metricbeat"
- "packetbeat"
- "winlogbeat"
- "x-pack/auditbeat"
- "x-pack/dockerlogbeat"
- "x-pack/filebeat"
- "x-pack/functionbeat"
- "x-pack/heartbeat"
- "x-pack/libbeat"
- "x-pack/metricbeat"
- "x-pack/osquerybeat"
- "x-pack/packetbeat"
- "x-pack/winlogbeat"

## Changeset macros that are defined here and used in each specific 3.0 pipeline.
changeset:
ci:
- "^Jenkinsfile"
- "^\\.ci/scripts/.*"
oss:
- "^go.mod"
- "^pytest.ini"
- "^dev-tools/.*"
- "^libbeat/.*"
- "^testing/.*"
xpack:
- "^go.mod"
- "^pytest.ini"
- "^dev-tools/.*"
- "^libbeat/.*"
- "^testing/.*"
- "^x-pack/libbeat/.*"

disabled:
when:
labels: ## Skip the GitHub Pull Request builds if any of the given GitHub labels match with the assigned labels in the PR.
- skip-ci
draft: true ## Skip the GitHub Pull Request builds with Draft PRs.
5 changes: 5 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ retry() {
return 0
}

<<<<<<< HEAD
if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" ]]; then
=======

if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" || "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" || "$BUILDKITE_PIPELINE_SLUG" == "deploy-k8s" ]]; then
>>>>>>> 4b7467b5c5 (Beats pipeline generator (#38162))
source .buildkite/env-scripts/env.sh
source .buildkite/env-scripts/util.sh
source .buildkite/env-scripts/win-env.sh
Expand Down
Loading

0 comments on commit 0089fb3

Please sign in to comment.