File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1313RECENT_TIME_WINDOW=${RECENT_TIME_WINDOW:- 24}
1414
1515# Extract current JDK major version from bundled_jdk in version.properties
16- CURRENT_JDK=$( grep " ^bundled_jdk =" build-tools-internal/version.properties | cut -d' =' -f2 | tr -d ' ' | cut -d' +' -f1)
16+ CURRENT_JDK=$( grep " ^bundled_jdk =" build-tools-internal/version.properties | cut -d' =' -f2 | tr -d ' ' | cut -d' +' -f1 | cut -d ' . ' -f1 )
1717TARGET_JDK=$(( CURRENT_JDK + 1 ))
1818
1919echo " Current JDK major version: $CURRENT_JDK "
@@ -51,10 +51,6 @@ echo "Latest JDK ${TARGET_JDK} build from ES archive:"
5151echo " Timestamp: $TIMESTAMP "
5252echo " JDK Identifier: $JDK_IDENTIFIER "
5353
54- # Set variables for use in the pipeline trigger
55- jdkbuild=" $JDK_IDENTIFIER "
56- jdk_timestamp=" $TIMESTAMP "
57-
5854# Check if timestamp is within last 24 hours
5955CURRENT_TIME=$( date +%s)
6056BUILD_TIME=$( date -d " $TIMESTAMP " +%s 2> /dev/null || date -j -f " %Y-%m-%dT%H:%M:%S" " ${TIMESTAMP% Z} " +%s 2> /dev/null || echo " 0" )
You can’t perform that action at this time.
0 commit comments