diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 09b6e905ff15..12f0667c6948 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,48 +2,30 @@ steps: - - label: "Validate catalog-info" - if: build.pull_request.id != null - plugins: - monorepo-diff#v1.3.0: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - wait: true - watch: - # if our catalog-info.yaml is changed, make sure it's well-formed according to our internal standards as well as Backstage's validation - - path: "catalog-info.yaml" - config: - command: "/agent/check-catalog-info.sh" - agents: - image: "docker.elastic.co/ci-agent-images/pipelib:0.13.0@sha256:190464950de81cb3390bd5e07bb1cc171dd4a765c1ce5de58ebca476f9a6839f" - - label: "Trigger Auditbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - auditbeat/ - - .buildkite/auditbeat/ - - .buildkite/scripts - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "auditbeat" - 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} + if_changed: + include: + - ".go-version" + - "auditbeat/**" + - ".buildkite/auditbeat/**" + - .buildkite/pipeline.yml + - ".buildkite/scripts/**" + - ".buildkite/hooks/**" + #OSS + - "go.mod" + - "pytest.ini" + - "dev-tools/**" + - "libbeat/**" + - "testing/**" + trigger: "auditbeat" + 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} - label: "Triggering Build for Auditbeat" if: build.pull_request.id == null @@ -54,32 +36,28 @@ steps: - label: "Trigger Heartbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - heartbeat/ - - .buildkite/heartbeat/ - - .buildkite/scripts - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "heartbeat" - 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} + if_changed: + include: + - .go-version + - heartbeat/** + - .buildkite/heartbeat/** + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "heartbeat" + 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} - label: "Triggering Build for Heartbeat" if: build.pull_request.id == null @@ -90,33 +68,29 @@ steps: - label: "Trigger Filebeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - filebeat/ - - .buildkite/filebeat/ - # CI related scripts - - .buildkite/scripts - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools - - libbeat/** - - testing/** - config: - trigger: "filebeat" - 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} + if_changed: + include: + - .go-version + - filebeat/ + - .buildkite/filebeat/ + # CI related scripts + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools + - libbeat/** + - testing/** + trigger: "filebeat" + 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} - label: "Triggering Build for Filebeat" if: build.pull_request.id == null @@ -127,35 +101,31 @@ steps: - label: "Trigger x-pack/filebeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - filebeat/ - - x-pack/filebeat/ - - x-pack/libbeat/ - - .buildkite/x-pack/pipeline.xpack.filebeat.yml - - .buildkite/scripts - - .buildkite/hooks/ - - .buildkite/deploy/docker/docker-compose.yml - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "beats-xpack-filebeat" - 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} + if_changed: + include: + - .go-version + - filebeat/ + - x-pack/filebeat/ + - x-pack/libbeat/** + - .buildkite/x-pack/pipeline.xpack.filebeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + - .buildkite/deploy/docker/docker-compose.yml + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-filebeat" + 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} - label: "Triggering Build for x-pack/filebeat" if: build.pull_request.id == null @@ -166,32 +136,28 @@ steps: - label: "Trigger x-pack/dockerlogbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - x-pack/dockerlogbeat/ - - .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml - - .buildkite/hooks/ - - .buildkite/scripts - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "beats-xpack-dockerlogbeat" - 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} + if_changed: + include: + - .go-version + - x-pack/dockerlogbeat/ + - .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml + - .buildkite/pipeline.yml + - .buildkite/hooks/** + - .buildkite/scripts/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-dockerlogbeat" + 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} - label: "Triggering Build for x-pack/dockerlogbeat" if: build.pull_request.id == null @@ -202,32 +168,28 @@ steps: - label: "Trigger Metricbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - metricbeat/ - - .buildkite/metricbeat/ - - .buildkite/scripts - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "beats-metricbeat" - 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} + if_changed: + include: + - .go-version + - metricbeat/** + - .buildkite/metricbeat/ + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-metricbeat" + 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} - label: "Triggering Build for Metricbeat" if: build.pull_request.id == null @@ -238,35 +200,31 @@ steps: - label: "Trigger x-pack/metricbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - metricbeat/ - - x-pack/metricbeat/ - - x-pack/libbeat/common/aws - - .buildkite/x-pack/pipeline.xpack.metricbeat.yml - - .buildkite/scripts - - .buildkite/hooks/ - - .buildkite/deploy/docker/docker-compose.yml - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "beats-xpack-metricbeat" - 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} + if_changed: + include: + - .go-version + - metricbeat/** + - x-pack/metricbeat/** + - x-pack/libbeat/common/aws + - .buildkite/x-pack/pipeline.xpack.metricbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + - .buildkite/deploy/docker/docker-compose.yml + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-metricbeat" + 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} - label: "Triggering Build for x-pack/metricbeat" if: build.pull_request.id == null @@ -277,35 +235,31 @@ steps: - label: "Trigger x-pack/osquerybeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - x-pack/osquerybeat/** - - .buildkite/x-pack/pipeline.xpack.osquerybeat.yml - - .buildkite/scripts/** - - .buildkite/hooks/** - # x-pack - - libbeat/** - - x-pack/libbeat/** - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/** - - testing/** - config: - trigger: "beats-xpack-osquerybeat" - 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} + if_changed: + include: + - .go-version + - x-pack/osquerybeat/** + - .buildkite/x-pack/pipeline.xpack.osquerybeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + # x-pack + - libbeat/** + - x-pack/libbeat/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-osquerybeat" + 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} - label: "Triggering Build for x-pack/osquerybeat" if: build.pull_request.id == null @@ -316,33 +270,29 @@ steps: - label: "Trigger x-pack/winlogbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - winlogbeat/ - - x-pack/winlogbeat/ - - .buildkite/x-pack/pipeline.xpack.winlogbeat.yml - - .buildkite/scripts - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/** - - libbeat/** - - testing/** - config: - trigger: "beats-xpack-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} + if_changed: + include: + - .go-version + - winlogbeat/** + - x-pack/winlogbeat/** + - .buildkite/x-pack/pipeline.xpack.winlogbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-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} - label: "Triggering Build for x-pack/winlogbeat" if: build.pull_request.id == null @@ -353,28 +303,24 @@ steps: - label: "Trigger Deploy/K8S" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - .buildkite/deploy/kubernetes/** - - .buildkite/hooks/ - - .buildkite/scripts - - deploy/kubernetes/** - - metricbeat/module/kubernetes/** - - libbeat/docs/version.asciidoc - config: - trigger: "deploy-k8s" - 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} + if_changed: + include: + - .go-version + - .buildkite/deploy/kubernetes/** + - .buildkite/pipeline.yml + - .buildkite/hooks/** + - .buildkite/scripts/** + - deploy/kubernetes/** + - metricbeat/module/kubernetes/** + - libbeat/docs/version.asciidoc + trigger: "deploy-k8s" + 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} - label: "Triggering Build for Deploy/K8S" if: build.pull_request.id == null @@ -385,31 +331,27 @@ steps: - label: "Trigger Libbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - libbeat/ - - .buildkite/libbeat/pipeline.libbeat.yml - - .buildkite/scripts - - .buildkite/hooks - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - testing/ - config: - trigger: "beats-libbeat" - 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} + if_changed: + include: + - .go-version + - libbeat/** + - .buildkite/libbeat/pipeline.libbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - testing/** + trigger: "beats-libbeat" + 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} - label: "Triggering Build for Libbeat" if: build.pull_request.id == null @@ -420,33 +362,29 @@ steps: - label: "Trigger x-pack/libbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - libbeat/ - - x-pack/libbeat/ - - .buildkite/x-pack/pipeline.xpack.libbeat.yml - - .buildkite/scripts - - .buildkite/hooks - # x-pack - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - config: - trigger: "beats-xpack-libbeat" - 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} + if_changed: + include: + - .go-version + - libbeat/** + - x-pack/libbeat/** + - .buildkite/x-pack/pipeline.xpack.libbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + # x-pack + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-xpack-libbeat" + 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} - label: "Triggering Build for x-pack/libbeat" if: build.pull_request.id == null @@ -457,29 +395,25 @@ steps: - label: "Trigger x-pack/otel" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - x-pack/otel/ - - .buildkite/x-pack/pipeline.xpack.otel.yml - - .buildkite/scripts - - .buildkite/hooks - - go.mod - - dev-tools/ - - testing/ - config: - trigger: "beats-xpack-otel" - 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} + if_changed: + include: + - .go-version + - x-pack/otel/** + - .buildkite/x-pack/pipeline.xpack.otel.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + - go.mod + - dev-tools/** + - testing/** + trigger: "beats-xpack-otel" + 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} - label: "Triggering Build for x-pack/otel" if: build.pull_request.id == null @@ -490,34 +424,30 @@ steps: - label: "Trigger x-pack/auditbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - auditbeat/ - - x-pack/auditbeat/ - - .buildkite/x-pack/pipeline.xpack.auditbeat.yml - - .buildkite/scripts/ - - .buildkite/hooks/ - # x-pack - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - - x-pack/libbeat/ - config: - trigger: "beats-xpack-auditbeat" - 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} + if_changed: + include: + - .go-version + - auditbeat/** + - x-pack/auditbeat/ + - .buildkite/x-pack/pipeline.xpack.auditbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + # x-pack + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + - x-pack/libbeat/** + trigger: "beats-xpack-auditbeat" + 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} - label: "Triggering Build for x-pack/auditbeat" if: build.pull_request.id == null @@ -528,34 +458,30 @@ steps: - label: "Trigger x-pack/heartbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - heartbeat/ - - x-pack/heartbeat/ - - .buildkite/x-pack/pipeline.xpack.heartbeat.yml - - .buildkite/scripts/ - - .buildkite/hooks/ - # x-pack - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - - x-pack/libbeat/ - config: - trigger: "beats-xpack-heartbeat" - 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} + if_changed: + include: + - .go-version + - heartbeat/** + - x-pack/heartbeat/** + - .buildkite/x-pack/pipeline.xpack.heartbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + # x-pack + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + - x-pack/libbeat/** + trigger: "beats-xpack-heartbeat" + 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} - label: "Triggering Build for x-pack/heartbeat" if: build.pull_request.id == null @@ -566,34 +492,30 @@ steps: - label: "Trigger x-pack/packetbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - packetbeat/ - - x-pack/packetbeat/ - - .buildkite/x-pack/pipeline.xpack.packetbeat.yml - - .buildkite/scripts/ - - .buildkite/hooks/ - # x-pack - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - - x-pack/libbeat/ - config: - trigger: "beats-xpack-packetbeat" - 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} + if_changed: + include: + - .go-version + - packetbeat/** + - x-pack/packetbeat/** + - .buildkite/x-pack/pipeline.xpack.packetbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + # x-pack + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + - x-pack/libbeat/** + trigger: "beats-xpack-packetbeat" + 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} - label: "Triggering Build for x-pack/packetbeat" if: build.pull_request.id == null @@ -604,32 +526,28 @@ steps: - label: "Trigger Winlogbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - 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} + if_changed: + include: + - .go-version + - winlogbeat/** + - .buildkite/winlogbeat/pipeline.winlogbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + 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} - label: "Triggering Build for Winlogbeat" if: build.pull_request.id == null @@ -640,32 +558,28 @@ steps: - label: "Trigger Packetbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - packetbeat/ - - .buildkite/packetbeat/pipeline.packetbeat.yml - - .buildkite/scripts/ - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - config: - trigger: "beats-packetbeat" - 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} + if_changed: + include: + - .go-version + - packetbeat/** + - .buildkite/packetbeat/pipeline.packetbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + #OSS + - go.mod + - pytest.ini + - dev-tools/** + - libbeat/** + - testing/** + trigger: "beats-packetbeat" + 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} - label: "Triggering Build for Packetbeat" if: build.pull_request.id == null @@ -676,46 +590,36 @@ steps: - label: "Trigger Agentbeat" if: build.pull_request.id != null - plugins: - - monorepo-diff#v1.5.1: - diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" - interpolation: false - watch: - - path: - - .go-version - - auditbeat/ - - filebeat/ - - heartbeat/ - - metricbeat/ - - osquerybeat/ - - packetbeat/ - - - x-pack/agentbeat/ - - x-pack/auditbeat/ - - x-pack/filebeat/ - - x-pack/heartbeat/ - - x-pack/metricbeat/ - - x-pack/osquerybeat/ - - x-pack/packetbeat/ - - - .buildkite/x-pack/pipeline.xpack.agentbeat.yml - - .buildkite/scripts/ - - .buildkite/hooks/ - #OSS - - go.mod - - pytest.ini - - dev-tools/ - - libbeat/ - - testing/ - config: - trigger: "beats-xpack-agentbeat" - 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} + if_changed: + include: + - .go-version + - auditbeat/** + - filebeat/** + - heartbeat/** + - metricbeat/** + - osquerybeat/** + - packetbeat/** + + - x-pack/agentbeat/** + - x-pack/auditbeat/** + - x-pack/filebeat/** + - x-pack/heartbeat/** + - x-pack/metricbeat/** + - x-pack/osquerybeat/** + - x-pack/packetbeat/** + + - .buildkite/x-pack/pipeline.xpack.agentbeat.yml + - .buildkite/pipeline.yml + - .buildkite/scripts/** + - .buildkite/hooks/** + trigger: "beats-xpack-agentbeat" + 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} - label: "Triggering Build for Agentbeat" if: build.pull_request.id == null