Skip to content

Commit

Permalink
updated cnetral pipleine with winlogbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 18, 2024
1 parent d216eb9 commit cae7172
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,29 @@ steps:
- BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST}
- BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH}
- GITHUB_PR_LABELS=${GITHUB_PR_LABELS}

- label: "Trigger Winlogbeat"
plugins:
- monorepo-diff#v1.0.1:
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"
watch:
- path:
- winlogbeat/
- .buildkite/winlogbeat/pipeline.winlogbeat.yml
- .buildkite/scripts
- .buildkite/hooks
#OSS
- go.mod
- pytest.ini
- dev-tools/**
- libbeat/**
- testing/**
config:
trigger: "beats-winlogbeat"
build:
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
env:
- BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST}
- BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH}
- GITHUB_PR_LABELS=${GITHUB_PR_LABELS}
11 changes: 4 additions & 7 deletions .buildkite/winlogbeat/pipeline.winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ env:
GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
GCP_WIN_MACHINE_TYPE: "n2-standard-8"

IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204"
IMAGE_WIN_10: "family/platform-ingest-beats-windows-10"
IMAGE_WIN_11: "family/platform-ingest-beats-windows-11"
IMAGE_WIN_2016: "family/platform-ingest-beats-windows-2016"
IMAGE_WIN_2019: "family/platform-ingest-beats-windows-2019"
IMAGE_WIN_2022: "family/platform-ingest-beats-windows-2022"

#Packaging
PACKAGING_ARM_PLATFORMS: "linux/arm64"
PACKAGING_PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"

# Other deps
ASDF_MAGE_VERSION: 1.15.0

Expand All @@ -24,7 +21,7 @@ steps:
key: "winlogbeat-mandatory-tests"

steps:
- label: ":ubuntu: Crossccompile"
- label: ":ubuntu: Winlogbeat Crossccompile"
key: "mandatory-cross-compile"
command: "make -C winlogbeat crosscompile"
agents:
Expand Down Expand Up @@ -134,7 +131,7 @@ steps:

- wait: ~
depends_on:
- step: "mandatory-tests"
- step: "winlogbeat-mandatory-tests"

- group: "Winlogbeat Packaging"
key: "winlogbeat-packaging"
Expand All @@ -147,7 +144,7 @@ steps:
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
env:
PLATFORMS: "${PACKAGING_PLATFORMS}"
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"
notify:
- github_commit_status:
context: "Winlogbeat: Packaging Ubuntu x86_64"

0 comments on commit cae7172

Please sign in to comment.