Skip to content

Commit

Permalink
test module definition
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed May 10, 2024
1 parent 13746a3 commit 9f7ccfd
Show file tree
Hide file tree
Showing 8 changed files with 307 additions and 444 deletions.
37 changes: 0 additions & 37 deletions .buildkite/env-scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,40 +102,3 @@ set_git_config() {
git config user.name "${GITHUB_USERNAME_SECRET}"
git config user.email "${GITHUB_EMAIL_SECRET}"
}

changeset_applies() {
local changeset=$1
if are_files_changed "$changeset"; then
echo true
else
echo false
fi
}

unset_secrets () {
for var in $(printenv | sed 's;=.*;;' | sort); do
if [[ "$var" == *_SECRET || "$var" == *_TOKEN ]]; then
unset "$var"
fi
done
}

google_cloud_logout_active_account() {
local active_account=$(gcloud auth list --filter=status:ACTIVE --format="value(account)" 2>/dev/null)
if [[ -n "$active_account" && -n "${GOOGLE_APPLICATION_CREDENTIALS+x}" ]]; then
echo "Logging out from GCP for active account"
gcloud auth revoke $active_account > /dev/null 2>&1
else
echo "No active GCP accounts found."
fi
if [ -n "${GOOGLE_APPLICATION_CREDENTIALS+x}" ]; then
unset GOOGLE_APPLICATION_CREDENTIALS
cleanup
fi
}

cleanup() {
echo "Deleting temporary files..."
rm -rf ${BIN}/${TMP_FOLDER}.*
echo "Done."
}
30 changes: 0 additions & 30 deletions .buildkite/filebeat/scripts/packaging/package-util.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .buildkite/filebeat/scripts/packaging/package.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .buildkite/filebeat/scripts/packaging/packaging-env.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" || "$BUILDKITE_PIPELINE_SLUG" == "fi
git config user.name "$github_username"
git config user.email "$github_email"
fi

if [[ "$BUILDKITE_STEP_KEY" == macos* ]]; then
ulimit -Sn 30000
fi
fi

ENABLED_BEATS_PIPELINES_SLUGS=(
Expand Down
Loading

0 comments on commit 9f7ccfd

Please sign in to comment.