-
-
Notifications
You must be signed in to change notification settings - Fork 78
[JENKINS-75679] KeyMaterial variant passing VirtualChannel to close
#166
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
Conversation
| try { | ||
| dockerConfig.deleteRecursive(); | ||
| } catch (InterruptedException x) { | ||
| // TODO would better have been thrown from KeyMaterial.close to begin with |
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.
(also addressed with new signature)
| private static class RegistryKeyMaterial2 extends KeyMaterial2 { | ||
|
|
||
| private final FilePath dockerConfig; | ||
| private final String dockerConfig; |
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.
The key fix: avoids saving a FilePathPickle in program.dat.
| private static final class ServerKeyMaterial2 extends KeyMaterial2 { | ||
|
|
||
| private final FilePath[] tempDirs; | ||
| private final @CheckForNull String tempDir; |
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.
Same here.
Original code was unnecessarily complex handling an array of arbitrary size, when in fact it was only ever called with zero or one dirs.
Needed for jenkinsci/docker-workflow-plugin#351.