Skip to content

Commit

Permalink
added dynamic step for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 17, 2024
1 parent 9b8e1f8 commit f0c1c9f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .buildkite/env-scripts/macos-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
if [[ "$BUILDKITE_STEP_KEY" == macos* ]]; then
echo ":: Setting larger ulimit on MacOS ::"
# To bypass file descriptor errors like "Too many open files error" on MacOS
ulimit -Sn 10000
ulimit -Sn 50000
fi
14 changes: 12 additions & 2 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

env:
SETUP_GVM_VERSION: "v0.5.1"
# SETUP_GVM_VERSION: "v0.5.1"
IMAGE_UBUNTU_X86_64: "family/core-ubuntu-2204"
IMAGE_UBUNTU_ARM_64: "core-ubuntu-2004-aarch64"
IMAGE_WIN_2016: "family/core-windows-2016"
IMAGE_WIN_2019: "family/core-windows-2019"
IMAGE_WIN_2022: "family/core-windows-2022"
DEBIAN_FRONTEND: "noninteractive"
# DEBIAN_FRONTEND: "noninteractive"

steps:
- group: "Filebeat Mandatory Testing"
Expand Down Expand Up @@ -127,9 +127,19 @@ steps:
- "filebeat/build/*.xml"
- "filebeat/build/*.json"

- group: "Packaging"
key: "packaging"
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on:
- "mandatory-tests"
- "extended-tests"
- "extended-tests-win"

steps:
- label: Package pipeline
commands: ".buildkite/filebeat/scripts/package-step.sh | buildkite-agent pipeline upload"


# - group: "Packaging"
# key: "packaging"
# if: build.env("BUILDKITE_PULL_REQUEST") != "false"
Expand Down
4 changes: 0 additions & 4 deletions .buildkite/filebeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ if are_files_changed "$changeset"; then
- group: "Packaging"
key: "packaging"
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on:
- "mandatory-tests"
- "extended-tests"
- "extended-tests-win"
steps:
- label: ":ubuntu: Packaging Linux X86"
Expand Down

0 comments on commit f0c1c9f

Please sign in to comment.