-
Notifications
You must be signed in to change notification settings - Fork 738
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
Use credentials to load GSKit binaries from Artifactory #18666
Conversation
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.
While we're here, is it wise to clean this code up a bit?
I'm wondering if we can move the get_source line to a new function so we don't have to repeat it 4 times. Can a similar thing be done for the gskit creds bit too? 🤔
I can move the whole if-else block into a function to avoid doing it twice. However, I think I need to make separate calls with and without @AdamBrousseau If you have a way to circumvent that, I'd be more than willing to give it a try. Otherwise, I can just move the whole new block into a method. |
Does this work for the get_source line?
Or is that what you tried when you said it was printing the creds to the console? |
I tried the following:
Which wouldn't pass the credentials at all. And then I changed the line to: That worked, but was printing the credentials. |
Ok. Well let's not waste too much time on it. The code doesn't change that often. |
jenkins compile amac jdk17 |
7e5dae1
to
0c47c25
Compare
jenkins compile amac jdk17 |
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.
Looks good. Thanks for getting the code refactored.
PR build passed and internal build passed (Build_JDK17_x86-64_linux_Personal/1825 & 1826).
This allows the
GSKit
binaries to be downloaded fromArtifactory
, using the appropriate credentials, during theOpenJDK
build process.Signed-off by: Kostas Tsiounis [email protected]