Fix BWC checkouts when running packaging tests (#86767)

This commit is contained in:
Mark Vieira 2022-05-12 14:25:48 -07:00 committed by GitHub
parent 3649baf088
commit 5ed175b97d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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