Skip to content

Conversation

jglick
Copy link
Member

@jglick jglick commented May 29, 2025

}

@Override
public void close() throws IOException {
try {
dockerConfig.deleteRecursive();
} catch (InterruptedException x) {
// TODO would better have been thrown from KeyMaterial.close to begin with
Copy link
Member Author

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 final FilePath dockerConfig;
private final String dockerConfig;
Copy link
Member Author

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 final FilePath[] tempDirs;
private final @CheckForNull String tempDir;
Copy link
Member Author

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.

@jglick jglick marked this pull request as ready for review May 29, 2025 22:46
@jglick jglick requested a review from a team as a code owner May 29, 2025 22:46
@jglick jglick merged commit 0f62a94 into jenkinsci:master May 30, 2025
17 checks passed
@jglick jglick deleted the FilePathPickle-JENKINS-75679 branch May 30, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants