On Mon, 21 Sep 2020 17:22:57 GMT, Erik Joelsson <er...@openjdk.org> wrote:

>> Certainly, the prerequisites step can checkout additional repositories and 
>> run shell commands to extract variables to
>> be used for later steps. Do we have any suitable source for these versions? 
>> We'll also need download links for the
>> different flavors of the bootjdk (and ideally the sha256 hash, although the 
>> verification step could perhaps be skipped).
>
> We don't have a good source currently no, but something to keep in mind. 
> Ideally we would want to create a common
> source for both jib-profiles.js and the gitactions to read from. I would 
> prefer something that can be read both as a
> properties file and sourced as a shell script, much like the version-numbers 
> file currently is. That could be done as a
> separate change though.

Sure, should not be that hard to parse something similar. The GitHub actions 
will probably need it in JSON format at
some point, but nothing a little `sed -e '1i {' -e 's/#.*//g' -e 's/"//g' -e 
's/(.*)=(.*)/"\1": "\2",/g' -e
'$s/,\s{0,}$/}/'` won't solve. Any suggestion for the location and name of such 
a file? I'm thinking it would contain
entries like this:

BOOT_JDK_VERSION="14.0.2"
JTREG_VERSION="jtreg5.1-b01"
GTEST_VERSION="release-1.8.1"
LINUX_X64_BOOT_JDK_FILENAME="openjdk-14.0.2_linux-x64_bin.tar.gz"
LINUX_X64_BOOT_JDK_URL="https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz";
LINUX_X64_BOOT_JDK_SHA256="91310200f072045dc6cef2c8c23e7e6387b37c46e9de49623ce0fa461a24623d"

-------------

PR: https://git.openjdk.java.net/jdk/pull/284

Reply via email to