Skip to content

Commit

Permalink
Fix BWC checkouts when running packaging tests (#86767) (#86771)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed May 12, 2022
1 parent a146af1 commit 73ae8e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/scripts/packaging-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ sudo chmod 0440 /etc/sudoers.d/elasticsearch_vars
sudo rm -Rf /elasticsearch
sudo mkdir -p /elasticsearch/qa/ && sudo chown jenkins /elasticsearch/qa/ && ln -s $PWD/qa/vagrant /elasticsearch/qa/

# Ensure since we're running as root that we can do git operations in this directory
# See: https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory
git config --global --add safe.directory $WORKSPACE

# sudo sets it's own PATH thus we use env to override that and call sudo annother time so we keep the secure root PATH
# run with --continue to run both bats and java tests even if one fails
# be explicit about Gradle home dir so we use the same even with sudo
Expand Down

0 comments on commit 73ae8e9

Please sign in to comment.