Skip to content

Commit

Permalink
Clean BK scripts (elastic#38812)
Browse files Browse the repository at this point in the history
This commit removes the need to configure git for Windows, since we
migrated to the custom Windows images and removed the config_git, which
was defined 2 times on the single file.

Signed-off-by: Alexandros Sapranidis <[email protected]>
  • Loading branch information
alexsapran authored Apr 10, 2024
1 parent e798bb1 commit 8051e6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" ==
with_mage
fi

if [[ "$BUILDKITE_STEP_KEY" == windows* ]]; then
git config core.autocrlf false
git rm --quiet --cached -r .
git reset --quiet --hard
fi

if [[ "$BUILDKITE_STEP_KEY" == package* ]]; then
DOCKER_USERNAME_SECRET=$(retry_with_count 5 vault kv get -field user "${DOCKER_REGISTRY_SECRET_PATH}")
DOCKER_PASSWORD_SECRET=$(retry_with_count 5 vault kv get -field password "${DOCKER_REGISTRY_SECRET_PATH}")
Expand Down
7 changes: 0 additions & 7 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,6 @@ are_conditions_met_packaging() {
return 1
}

config_git() {
if [ -z "$(git config --get user.email)" ]; then
git config --global user.email "[email protected]"
git config --global user.name "beatsmachine"
fi
}

defineModuleFromTheChangeSet() {
# This method gathers the module name, if required, in order to run the ITs only if the changeset affects a specific module.
# For such, it's required to look for changes under the module folder and exclude anything else such as asciidoc and png files.
Expand Down

0 comments on commit 8051e6b

Please sign in to comment.