File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
git rev-parse HEAD
24
24
25
25
echo "Get Major Version"
26
- OS_VERSION=`cat buildSrc/version.properties | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
27
- JDK_MAJOR_VERSION=`cat buildSrc/version.properties | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
26
+ OS_VERSION=`cat gradle/libs.versions.toml | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
27
+ JDK_MAJOR_VERSION=`cat gradle/libs.versions.toml | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
28
28
OS_MAJOR_VERSION=`echo $OS_VERSION | grep -oE '[0-9]+' | head -n 1`
29
29
echo "Version: $OS_VERSION, Major Version: $OS_MAJOR_VERSION"
30
30
Original file line number Diff line number Diff line change 23
23
git rev-parse HEAD
24
24
25
25
echo "Get Major Version"
26
- OS_VERSION=`cat buildSrc/version.properties | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
27
- JDK_MAJOR_VERSION=`cat buildSrc/version.properties | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
26
+ OS_VERSION=`cat gradle/libs.versions.toml | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
27
+ JDK_MAJOR_VERSION=`cat gradle/libs.versions.toml | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
28
28
OS_MAJOR_VERSION=`echo $OS_VERSION | grep -oE '[0-9]+' | head -n 1`
29
29
echo "Version: $OS_VERSION, Major Version: $OS_MAJOR_VERSION"
30
30
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ void call(Map args = [:]) {
44
44
git rev-parse HEAD
45
45
46
46
echo "Get Major Version"
47
- OS_VERSION=`cat buildSrc/version.properties | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
48
- JDK_MAJOR_VERSION=`cat buildSrc/version.properties | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
47
+ OS_VERSION=`cat gradle/libs.versions.toml | grep opensearch | cut -d= -f2 | grep -oE '[0-9.]+'`
48
+ JDK_MAJOR_VERSION=`cat gradle/libs.versions.toml | grep "bundled_jdk" | cut -d= -f2 | grep -oE '[0-9]+' | head -n 1`
49
49
OS_MAJOR_VERSION=`echo \$ OS_VERSION | grep -oE '[0-9]+' | head -n 1`
50
50
echo "Version: \$ OS_VERSION, Major Version: \$ OS_MAJOR_VERSION"
51
51
You can’t perform that action at this time.
0 commit comments