Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-49237] - Lame fix of the serialization issue
  • Loading branch information
oleg-nenashev committed Jan 30, 2018
1 parent 0d7a4a9 commit 4f43d8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/plugins/helpers/BuildProxy.java
Expand Up @@ -25,9 +25,12 @@ public final class BuildProxy implements Serializable {
private final FilePath projectRootDir;
private final FilePath buildRootDir;
private final FilePath executionRootDir;
// It should not be serialized over the channel (JENKINS-49237)
private final Calendar timestamp;
// TODO: it should not be serialized over the channel. It should exist only on the master side
private final List<AbstractBuildAction<AbstractBuild<?, ?>>> actions =
new ArrayList<AbstractBuildAction<AbstractBuild<?, ?>>>();
//TODO: This class should not be serialized as well?
private Result result = null;
private boolean continueBuild = true;

Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/META-INF/hudson.remoting.ClassFilter
@@ -0,0 +1,12 @@
# TODO: not mergeable in the current state. JENKINS-49237
# Calendar class implementation has a custom deserialization logic
# ZoneInfo deserialization happens in the privileged mode...
java.util.Calendar
java.util.GregorianCalendar
java.util.SimpleTimeZone
sun.util.BuddhistCalendar
java.util.JapaneseImperialCalendar

java.util.TimeZone
java.util.SimpleTimeZone
sun.util.calendar.ZoneInfo

0 comments on commit 4f43d8d

Please sign in to comment.