-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update hardcoded JDK next values #1574
Conversation
@adam-thorpe Please let me know if there is anything left to be done. |
Think it was just those two values, thanks @ShishirH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we'd handle the case explicitly when System.getenv(...)
returns empty. I.e. the environment variable is not set. I'd suggest a similar course of action as in the else
branch.
Please also remove the comment as it's no longer true.
e22a12b
to
a2253c3
Compare
@jerboaa Made suggested changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nit: Perhaps we should be explicit and write Environment variable JAVA_FEATURE_VERSION not set
. You can make that change when you push.
a2253c3
to
188be1e
Compare
@jerboaa Updated the message. |
adoptium#1514 Signed-off-by: Shishir Halaharvi <[email protected]>
188be1e
to
bff31ce
Compare
Looks good. |
I am not sure where we would set |
I realise my last comment was a bit cryptic, for further info, the scripts you are changing execute on the Jenkins master server, I am not sure they even are able to access the environment variables due to the jenkins sandbox, but also I am not sure we have a good way of setting that environment variable in the context of the jenkins scripts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per @johnoliver comment where / How does JAVA_FEATURE_VERSION
get set?
early on in build-farm/make-adopt-build-farm.sh: https://github.com/AdoptOpenJDK/openjdk-build/blob/master/build-farm/make-adopt-build-farm.sh#L26 Would jenkins master not execute this? |
Yes that is correct, the groovy files are run by jenkins to setup and configure the jobs, make-adopt-build-farm.sh comes after to do the actual build on the node. So |
@johnoliver @adam-thorpe If I understand correctly, due to the scripts running before the groovy code, the hardcoding shouldn't be removed, and both this PR and issue should be closed without merging, right? |
@ShishirH its the other way around, since the groovy runs before the scripts so the variable is not set for the groovy to pick up. Removing the hardcoding is good so I would like to find a way around it. One thing to note is that you can set global environment variables inside Jenkins, so this PR would work if you did that. Its possible we could use Jenkins global environment variables as a central place to encode what the most recent version is. It is an open question as to where we want to centralise this most recent version number information rather than have it scattered around lots of scripts. The api may be the correct place for it, or possibly putting it in Jenkins via a statically hosted file or environment variable. @karianna or @sxa555 may have an opinion on which would be better. |
The API is intriguing as it decouples us from Jenkins (we're too tightly coupled as it is). Are you thinking of something like https://api.adoptopenjdk.net/latest_jdk_version which would return say |
@karianna yeah, something we can bump in a single place to pretty much say what version head is, then other scripts like docker stuff can read from there too. |
@johnoliver Works for me, let's do it. |
Created AdoptOpenJDK/openjdk-api-v3#212 to follow up on this |
This reverts commit 7b3fd1e.
#1514
Closes #1514
Signed-off-by: Shishir Halaharvi [email protected]