We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e890ad7 commit c22da52Copy full SHA for c22da52
.ci/scripts/packaging-test.sh
@@ -61,10 +61,15 @@ sudo bash -c 'cat > /etc/sudoers.d/elasticsearch_vars' << SUDOERS_VARS
61
SUDOERS_VARS
62
sudo chmod 0440 /etc/sudoers.d/elasticsearch_vars
63
64
-# Bats tests still use this locationa
+# Bats tests still use this location
65
sudo rm -Rf /elasticsearch
66
sudo mkdir -p /elasticsearch/qa/ && sudo chown jenkins /elasticsearch/qa/ && ln -s $PWD/qa/vagrant /elasticsearch/qa/
67
68
+#
69
+if [[ -z "${WORKSPACE}" ]]; then
70
+ WORKSPACE=$(pwd)
71
+fi
72
+
73
# Ensure since we're running as root that we can do git operations in this directory
74
# See: https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory
75
git config --global --add safe.directory $WORKSPACE
0 commit comments