Skip to content

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
@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