File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ sudo chmod 0440 /etc/sudoers.d/elasticsearch_vars
58
58
sudo rm -Rf /elasticsearch
59
59
sudo mkdir -p /elasticsearch/qa/ && sudo chown jenkins /elasticsearch/qa/ && ln -s $PWD /qa/vagrant /elasticsearch/qa/
60
60
61
+ # Ensure since we're running as root that we can do git operations in this directory
62
+ # See: https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory
63
+ git config --global --add safe.directory $WORKSPACE
64
+
61
65
# 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
62
66
# run with --continue to run both bats and java tests even if one fails
63
67
# be explicit about Gradle home dir so we use the same even with sudo
You can’t perform that action at this time.
0 commit comments