Skip to content

Commit

Permalink
made scripts executable
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Feb 7, 2024
1 parent 205d65b commit 6aaa5d4
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .buildkite/auditbeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ if are_files_changed "$changeset"; then
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
instanceType: "t4g.large"
EOF
else
cat <<-EOF
steps:
- label: ":ubuntu: Packaging Linux X86"
key: "package-linux-x86"
command:
- "buildkite-agent annotate "No required files changed" --style 'warning' --context 'ctx-warning'"
notify:
- github_commit_status:
context: "Auditbeat/Packaging: Linux X86"
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
EOF
fi
2 changes: 0 additions & 2 deletions .buildkite/env-scripts/linux-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ DEBIAN_FRONTEND="noninteractive"
sudo mkdir -p /etc/needrestart
echo "\$nrconf{restart} = 'a';" | sudo tee -a /etc/needrestart/needrestart.conf > /dev/null

echo "--- PLATFORM TYPE $PLATFORM_TYPE"

if [[ $PLATFORM_TYPE == "Linux" ]]; then
# Remove this code once beats specific agent is set up
if grep -q 'Ubuntu' /etc/*release; then
Expand Down
1 change: 0 additions & 1 deletion .buildkite/env-scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ are_files_changed() {
if git diff --name-only HEAD@{1} HEAD | grep -qE "$changeset"; then
return 0;
else
echo "WARN! No files changed in $changeset"
return 1;
fi
}
Expand Down
1 change: 0 additions & 1 deletion .buildkite/env-scripts/win-env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

echo "--- PLATFORM TYPE: ${PLATFORM_TYPE}"
if [[ ${PLATFORM_TYPE} = MINGW* ]]; then
echo "--- Installing Python on Win"
choco install mingw -y
Expand Down
14 changes: 14 additions & 0 deletions .buildkite/filebeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ if are_files_changed "$changeset"; then
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
instanceType: "t4g.large"
EOF
else
cat <<-EOF
steps:
- label: ":ubuntu: Packaging Linux X86"
key: "package-linux-x86"
command:
- "buildkite-agent annotate "No required files changed" --style 'warning' --context 'ctx-warning'"
notify:
- github_commit_status:
context: "Auditbeat/Packaging: Linux X86"
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
EOF
fi
4 changes: 2 additions & 2 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "heartbeat" || build.env("BUILDKITE_PULL_REQUEST") != "false"

steps:
- label: ":linux: Unit Tests"
- label: ":linux: Unit Tests / {{matrix.image}}"
command:
- ".buildkite/heartbeat/scripts/unit-tests.sh"
notify:
Expand All @@ -33,7 +33,7 @@ steps:
- "heartbeat/build/*.xml"
- "heartbeat/build/*.json"

- label: ":windows: Unit Tests"
- label: ":windows: Unit Tests / {{matrix.image}}"
command:
- ".buildkite/heartbeat/scripts/unit-tests-win.ps1"
notify:
Expand Down
Empty file modified .buildkite/heartbeat/scripts/integration-gotests.sh
100644 → 100755
Empty file.
Empty file modified .buildkite/heartbeat/scripts/integration-pytests.sh
100644 → 100755
Empty file.
14 changes: 14 additions & 0 deletions .buildkite/heartbeat/scripts/package-step.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ if are_files_changed "$changeset"; then
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
instanceType: "t4g.large"
EOF
else
cat <<-EOF
steps:
- label: ":ubuntu: Packaging Linux X86"
key: "package-linux-x86"
command:
- "buildkite-agent annotate "No required files changed" --style 'warning' --context 'ctx-warning'"
notify:
- github_commit_status:
context: "Auditbeat/Packaging: Linux X86"
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
EOF
fi
Empty file modified .buildkite/heartbeat/scripts/package.sh
100644 → 100755
Empty file.
Empty file modified .buildkite/heartbeat/scripts/unit-tests.sh
100644 → 100755
Empty file.

0 comments on commit 6aaa5d4

Please sign in to comment.