mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
4dbf6c0df9
Before this change we would recurse to cache bwc versions. This proved to be problematic due to the number of steps it was generating taking too long. Also this required tricky maintenance to break the recursion for old branches we don't really care about. With this change we now cache specific branches only.
26 lines
770 B
Bash
Executable File
26 lines
770 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT="$0"
|
|
|
|
# SCRIPT might be an arbitrarily deep series of symbolic links; loop until we
|
|
# have the concrete path
|
|
while [ -h "$SCRIPT" ] ; do
|
|
ls=$(ls -ld "$SCRIPT")
|
|
# Drop everything prior to ->
|
|
link=$(expr "$ls" : '.*-> \(.*\)$')
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
SCRIPT="$link"
|
|
else
|
|
SCRIPT=$(dirname "$SCRIPT")/"$link"
|
|
fi
|
|
done
|
|
|
|
source $(dirname "${SCRIPT}")/java-versions.properties
|
|
export JAVA_HOME="${HOME}"/.java/${ES_BUILD_JAVA}
|
|
# We are caching BWC versions too, need these so we can build those
|
|
export JAVA8_HOME="${HOME}"/.java/java8
|
|
export JAVA11_HOME="${HOME}"/.java/java11
|
|
export JAVA12_HOME="${HOME}"/.java/java12
|
|
./gradlew --parallel clean --scan -Porg.elasticsearch.acceptScanTOS=true -s resolveAllDependencies
|
|
|