Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61503

JEP-200: Latest Build History is getting disappeared after couple of hours

XMLWordPrintable

      My automation jobs run Daily and I could see the latest jobs in Build history to be retained for few days. When I have upgraded my Jenkins to Jenkins ver. 2.213, somehow my latest build history started getting disgarded or hidden after 1 day.  It is making me tough to analyse automation failure.

      I am not sure what is causing the Latest Build history to be disappeared (refer attached screenshot#2). Any help around this would be appreciable. 

       

      On the Jenkins System Logs:  I am seeing below error. This might be the reason because my job is using 

      Failed to save build record
      java.lang.UnsupportedOperationException: Refusing to marshal java.util.concurrent.locks.ReentrantLock for security reasons; see https://jenkins.io/redirect/class-filter/
      at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:541)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:262)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:249)
      Caused: java.lang.RuntimeException: Failed to serialize com.cloudbees.plugins.flow.JobInvocation#lock for class com.cloudbees.plugins.flow.JobInvocation
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:253)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:221)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:207)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:148)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:262)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:249)
      Caused: java.lang.RuntimeException: Failed to serialize com.cloudbees.plugins.flow.FlowCause#associatedJob for class com.cloudbees.plugins.flow.FlowCause
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:253)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:221)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:207)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:148)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:78)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:262)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:249)
      Caused: java.lang.RuntimeException: Failed to serialize hudson.model.CauseAction#causeBag for class hudson.model.CauseAction
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:253)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:221)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:207)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:148)
      at hudson.util.XStream2$PassthruConverter.marshal(XStream2.java:490)
      at hudson.util.XStream2$AssociatedConverterImpl.marshal(XStream2.java:460)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:262)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:249)
      Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:253)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:221)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:207)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:148)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
      at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
      at hudson.XmlFile.write(XmlFile.java:195)
      Caused: java.io.IOException
      at hudson.XmlFile.write(XmlFile.java:202)
      at hudson.model.Run.save(Run.java:2023)
      at hudson.model.Run.execute(Run.java:1910)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)

       

            rodrigc Craig Rodrigues
            jagjeet84 Jagjeet Chadha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: