Skip to content

Commit

Permalink
updated pipeline to match steps from 7.17 (#39740)
Browse files Browse the repository at this point in the history
Updated x-pack/winlogbeat pipeline to match same steps and step grouping as in Jenkins on 7.17 branch
  • Loading branch information
oakrizan authored May 30, 2024
1 parent b40ddd8 commit 0162f45
Showing 1 changed file with 14 additions and 36 deletions.
50 changes: 14 additions & 36 deletions .buildkite/x-pack/pipeline.xpack.winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: "beats-xpack-winlogbeat"

env:
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"
Expand All @@ -20,10 +19,10 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "x-pack/Winlogbeat Mandatory Tests"
- group: "x-pack/winlogbeat Mandatory Tests"
key: "x-pack-winlogbeat-mandatory-tests"
steps:
- label: ":windows: x-pack/Winlogbeat Win-2019 Unit (MODULE) Tests"
- label: ":windows: x-pack/winlogbeat Win-2019 Unit (MODULE) Tests"
key: "mandatory-win-2019-module-unit-tests"
command: |
Import-Module ./.buildkite/scripts/changesets.psm1
Expand All @@ -45,9 +44,9 @@ steps:
- "x-pack/winlogbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Win-2019 Unit (MODULE) Tests"
context: "x-pack/winlogbeat Win-2019 Unit (MODULE) Tests"

- label: ":windows: x-pack/Winlogbeat Win-2022 Unit Tests"
- label: ":windows: x-pack/winlogbeat Win-2022 Unit Tests"
command: |
Set-Location -Path x-pack/winlogbeat
mage build unitTest
Expand All @@ -66,14 +65,14 @@ steps:
- "x-pack/winlogbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Win-2022 Unit Tests"
context: "x-pack/winlogbeat Win-2022 Unit Tests"

- group: "Extended Windows Tests"
- group: "x-pack/winlogbeat Extended Windows Tests"
key: "extended-win-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/

steps:
- label: ":windows: x-pack/Winlogbeat Win-2016 Unit Tests"
- label: ":windows: x-pack/winlogbeat Win-2016 Unit Tests"
command: |
Set-Location -Path x-pack/winlogbeat
mage build unitTest
Expand All @@ -89,9 +88,9 @@ steps:
- "x-pack/winlogbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Win-2016 Unit Tests"
context: "x-pack/winlogbeat Win-2016 Unit Tests"

- label: ":windows: x-pack/Winlogbeat Win-10 Unit Tests"
- label: ":windows: x-pack/winlogbeat Win 10 Unit Tests"
command: |
Set-Location -Path x-pack/winlogbeat
mage build unitTest
Expand All @@ -110,30 +109,9 @@ steps:
- "x-pack/winlogbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Win-10 Unit Tests"

- label: ":windows: x-pack/Winlogbeat Win-11 Unit Tests"
command: |
Set-Location -Path x-pack/winlogbeat
mage build unitTest
key: "extended-win-11-unit-tests"
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "x-pack/winlogbeat/build/*.xml"
- "x-pack/winlogbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Win-11 Unit Tests"
context: "x-pack/winlogbeat Win 10 Unit Tests"

- label: ":windows: x-pack/Winlogbeat Win-2019 Unit Tests"
- label: ":windows: x-pack/winlogbeat Win-2019 Unit Tests"
command: |
Set-Location -Path x-pack/winlogbeat
mage build unitTest
Expand Down Expand Up @@ -162,11 +140,11 @@ steps:
depends_on:
- "x-pack-winlogbeat-mandatory-tests"

- group: "x-pack/Winlogbeat Packaging"
- group: "x-pack/winlogbeat Packaging"
key: "x-pack-winlogbeat-packaging"

steps:
- label: ":ubuntu: Packaging Linux"
- label: ":ubuntu: x-pack/winlogbeat Packaging Linux"
key: "packaging-linux"
command: "cd x-pack/winlogbeat && mage package"
retry:
Expand All @@ -183,4 +161,4 @@ steps:
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64"
notify:
- github_commit_status:
context: "x-pack/Winlogbeat Packaging"
context: "x-pack/winlogbeat Packaging Linux"

0 comments on commit 0162f45

Please sign in to comment.