From 30bd0b03a43f2da9e9e27610e8cfcc6f10dc24db Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 17 Apr 2024 11:59:20 +0300 Subject: [PATCH] fixed typo --- .buildkite/pipeline.yml | 6 +++--- .buildkite/scripts/common.sh | 6 +++++- .buildkite/winlogbeat/pipeline.winlogbeat.yml | 13 ++++++++----- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 813b8ba71fdc..8bd384a5b9f3 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -299,9 +299,9 @@ steps: #OSS - go.mod - pytest.ini - - dev-tools/** - - libbeat/** - - testing/** + - dev-tools/ + - libbeat/ + - testing/ config: trigger: "beats-winlogbeat" build: diff --git a/.buildkite/scripts/common.sh b/.buildkite/scripts/common.sh index 081dbb57060e..7fb833694a93 100755 --- a/.buildkite/scripts/common.sh +++ b/.buildkite/scripts/common.sh @@ -71,6 +71,10 @@ xpack_packetbeat_changeset=( "^x-pack/packetbeat/.*" ) +xpack_winlogbeat_changeset=( + "^x-pack/winlogbeat/.*" + ) + ci_changeset=( "^.buildkite/.*" ) @@ -374,7 +378,7 @@ are_conditions_met_arm_tests() { are_conditions_met_macos_tests() { if are_conditions_met_mandatory_tests; then #from https://github.com/elastic/beats/blob/c5e79a25d05d5bdfa9da4d187fe89523faa42afc/Jenkinsfile#L145-L171 - if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-packetbeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-metricbeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-heartbeat"; then + if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-packetbeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-metricbeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-heartbeat" ]]; then if [[ "${GITHUB_PR_TRIGGER_COMMENT}" == "${BEATS_GH_MACOS_COMMENT}" || "${GITHUB_PR_LABELS}" =~ ${BEATS_GH_MACOS_LABEL} || "${!TRIGGER_SPECIFIC_MACOS_TESTS}" == "true" ]]; then # from https://github.com/elastic/beats/blob/c5e79a25d05d5bdfa9da4d187fe89523faa42afc/metricbeat/Jenkinsfile.yml#L3-L12 return 0 fi diff --git a/.buildkite/winlogbeat/pipeline.winlogbeat.yml b/.buildkite/winlogbeat/pipeline.winlogbeat.yml index b8064a2a82b7..c71858b45b0a 100644 --- a/.buildkite/winlogbeat/pipeline.winlogbeat.yml +++ b/.buildkite/winlogbeat/pipeline.winlogbeat.yml @@ -89,11 +89,12 @@ steps: - github_commit_status: context: "Winlogbeat: Win-2022 Unit Tests" - - group: "Extended Windows Tests" + - group: "Winlogbeat Extended Windows Tests" key: "winlogbeat-extended-win-tests" + if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/ steps: - - label: ":windows: Winlogbeat Wind-10 Unit Tests" + - label: ":windows: Winlogbeat Win-10 Unit Tests" command: | Set-Location -Path winlogbeat mage build unitTest @@ -130,15 +131,17 @@ steps: context: "Winlogbeat: Win-11 Unit Tests" - wait: ~ - depends_on: - - step: "winlogbeat-mandatory-tests" + if: build.env("BUILDKITE_PULL_REQUEST") != "false" + depends_on: "winlogbeat-mandatory-tests" - group: "Winlogbeat Packaging" key: "winlogbeat-packaging" steps: - label: ":ubuntu: Winlogbeat Packaging Ubuntu x86_64" key: "packaging-linux" - command: "cd winlogbeat && mage package" + command: | + cd winlogbeat + mage package agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}"