Skip to content

Commit

Permalink
[7.17](backport #38162) PoC: use pipeline generator (#38485)
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)

Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
mergify[bot] and v1v authored Mar 22, 2024
1 parent 86eb33a commit a0a0191
Show file tree
Hide file tree
Showing 8 changed files with 605 additions and 5 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 @@ -5,6 +5,5 @@ set -euo pipefail
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.
3 changes: 2 additions & 1 deletion .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ retry() {
return 0
}

if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" || "$BUILDKITE_PIPELINE_SLUG" == "deploy-k8s" ]]; then

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

Expand Down
Loading

0 comments on commit a0a0191

Please sign in to comment.