Skip to content
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

Test on Java 17 #583

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Test on Java 17 #583

merged 1 commit into from
Jul 31, 2023

Conversation

basil
Copy link
Member

@basil basil commented Jul 31, 2023

In general, it is not possible in glibc (i.e., most Linux systems) to change environment variables after a program has launched, at least for multi-threaded programs. In earlier versions of Java it was possible to fake this at the Java runtime level by using reflection to access the Java hash map that mirrored the process's environment variables in the operating system, but recent versions of Java close off these reflection-based tricks. As such I am simply removing any tests that try to do this. I left the most important test with @Ignore in case someone needs to run it manually specifying the needed environment variable.

@basil basil added the tests label Jul 31, 2023
@timja timja merged commit 60c18fd into jenkinsci:master Jul 31, 2023
13 checks passed
@basil basil deleted the java17 branch July 31, 2023 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants