From e6d7b43782cb9246eb5953c1afddaf7517f7dfd9 Mon Sep 17 00:00:00 2001 From: ev1yehor <146825775+ev1yehor@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:51:11 +0300 Subject: [PATCH] Update pipelines with needed changes (#39946) Add "set -eo pipefail" to return error if any of commands will fail. --- .buildkite/auditbeat/auditbeat-pipeline.yml | 1 + .buildkite/filebeat/filebeat-pipeline.yml | 1 + .buildkite/heartbeat/heartbeat-pipeline.yml | 1 + .buildkite/libbeat/pipeline.libbeat.yml | 1 + .buildkite/metricbeat/pipeline.yml | 1 + .buildkite/packetbeat/pipeline.packetbeat.yml | 1 + .buildkite/winlogbeat/pipeline.winlogbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.auditbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.filebeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.heartbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.libbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.metricbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.osquerybeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.packetbeat.yml | 1 + .buildkite/x-pack/pipeline.xpack.winlogbeat.yml | 1 + 16 files changed, 16 insertions(+) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index f5ca39b36456..8c8172823438 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -33,6 +33,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C auditbeat check update make check-no-changes retry: diff --git a/.buildkite/filebeat/filebeat-pipeline.yml b/.buildkite/filebeat/filebeat-pipeline.yml index 849720d1e2df..734e9889ec59 100644 --- a/.buildkite/filebeat/filebeat-pipeline.yml +++ b/.buildkite/filebeat/filebeat-pipeline.yml @@ -32,6 +32,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C filebeat check update make check-no-changes retry: diff --git a/.buildkite/heartbeat/heartbeat-pipeline.yml b/.buildkite/heartbeat/heartbeat-pipeline.yml index d969c27c7d79..76001acec16a 100644 --- a/.buildkite/heartbeat/heartbeat-pipeline.yml +++ b/.buildkite/heartbeat/heartbeat-pipeline.yml @@ -32,6 +32,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C heartbeat check update make check-no-changes retry: diff --git a/.buildkite/libbeat/pipeline.libbeat.yml b/.buildkite/libbeat/pipeline.libbeat.yml index 7ebe5d76f988..eb81dfb5a8ee 100644 --- a/.buildkite/libbeat/pipeline.libbeat.yml +++ b/.buildkite/libbeat/pipeline.libbeat.yml @@ -21,6 +21,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C libbeat check update make check-no-changes retry: diff --git a/.buildkite/metricbeat/pipeline.yml b/.buildkite/metricbeat/pipeline.yml index cf46aebd5b77..82554ccb8fa7 100644 --- a/.buildkite/metricbeat/pipeline.yml +++ b/.buildkite/metricbeat/pipeline.yml @@ -35,6 +35,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C metricbeat check update make check-no-changes retry: diff --git a/.buildkite/packetbeat/pipeline.packetbeat.yml b/.buildkite/packetbeat/pipeline.packetbeat.yml index 40e5f0f4b6fb..585d0f92cfbb 100644 --- a/.buildkite/packetbeat/pipeline.packetbeat.yml +++ b/.buildkite/packetbeat/pipeline.packetbeat.yml @@ -30,6 +30,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C packetbeat check update make check-no-changes retry: diff --git a/.buildkite/winlogbeat/pipeline.winlogbeat.yml b/.buildkite/winlogbeat/pipeline.winlogbeat.yml index c53e60f36546..e35c232f19fe 100644 --- a/.buildkite/winlogbeat/pipeline.winlogbeat.yml +++ b/.buildkite/winlogbeat/pipeline.winlogbeat.yml @@ -29,6 +29,7 @@ steps: steps: - label: "Winlogbeat Run check/update" command: | + set -eo pipefail make -C winlogbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml index 9552cc14ef92..2b998f13a87c 100644 --- a/.buildkite/x-pack/pipeline.xpack.auditbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.auditbeat.yml @@ -33,6 +33,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/auditbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml index bdfe4c9dde62..c867c14d37fe 100644 --- a/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml @@ -23,6 +23,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/dockerlogbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.filebeat.yml b/.buildkite/x-pack/pipeline.xpack.filebeat.yml index ce45e7982396..d9779dfdc2e9 100644 --- a/.buildkite/x-pack/pipeline.xpack.filebeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.filebeat.yml @@ -31,6 +31,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/filebeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml index 1431cb20a51a..3c208c5a9c4d 100644 --- a/.buildkite/x-pack/pipeline.xpack.heartbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.heartbeat.yml @@ -37,6 +37,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/heartbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.libbeat.yml b/.buildkite/x-pack/pipeline.xpack.libbeat.yml index 93f57713ee33..2a8935e39f5a 100644 --- a/.buildkite/x-pack/pipeline.xpack.libbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.libbeat.yml @@ -29,6 +29,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/libbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml index 9f8b2ae0c726..a06305d1d240 100644 --- a/.buildkite/x-pack/pipeline.xpack.metricbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.metricbeat.yml @@ -31,6 +31,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/metricbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml index 5d3bc1285ff5..4d2236fe4592 100644 --- a/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.osquerybeat.yml @@ -28,6 +28,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/osquerybeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml index 71027426992e..1430cbe37bf2 100644 --- a/.buildkite/x-pack/pipeline.xpack.packetbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.packetbeat.yml @@ -32,6 +32,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/packetbeat check update make check-no-changes retry: diff --git a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml index fc8ce29a407c..8903ccadefca 100644 --- a/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml +++ b/.buildkite/x-pack/pipeline.xpack.winlogbeat.yml @@ -24,6 +24,7 @@ steps: steps: - label: "Run check/update" command: | + set -eo pipefail make -C x-pack/winlogbeat check update make check-no-changes retry: