[FIXED JENKINS-4409] Use a fixed directory for TestPluginManager. #780
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TestPluginManager expands plugins to a temporary directory at the start of all tests. This temporary directory is deleted with a shutdown hook of JVM.
In Windows, for JVM holds the handle of jar files bundled with plugins, it always fails to delete the temporary directory where plugins expanded. That is, ${java.io.tmpdir}/hudson*tmp is left even after the test finishes. Every time a test runs, the size of the temporary directory grows up.
TestPluginManager seems not need to use a different directory every time. Using a fixed directory prevents the size of the temporary directory growing up.
JENKINS-4409