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

Build result would be somehow reset to Failure

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Jenkins 2.138.2
      pipeline 2.5
      pipeline-job 2.31

      We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

      This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

      The attachments are the console log of successful builds and theirs build status icons. 

      Also get something from Jenkins system log:

      Jan 25, 2019 4:50:42 AM hudson.model.Run execute
      INFO: **/**#693 main build action completed: SUCCESS
      Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
      INFO: Launching computer **** as it has been in demand for 1 min 50 sec
      Jan 25, 2019 4:50:51 AM hudson.model.Run execute
      SEVERE: Failed to save build record

      java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
      at hudson.XmlFile.write(XmlFile.java:200)
      at hudson.model.Run.save(Run.java:2015)
      at hudson.model.Run.execute(Run.java:1876)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      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:193)
      ... 5 more
      Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      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:265)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      ... 18 more
      Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
      at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
      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:265)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      ... 33 more

       

       

      Would be very grateful if anyone could figure out why this strange thing happens.

       

       

          [JENKINS-55810] Build result would be somehow reset to Failure

          Royce Shen created issue -
          Royce Shen made changes -
          Description Original: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Would be very grateful if anyone could figure out why this strange thing happens.

          !build result.png|width=1773,height=652!

           
          New: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          Royce Shen made changes -
          Description Original: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          New: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
          {color:#FF0000}SEVERE: Failed to save build record{color}

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          Royce Shen made changes -
          Description Original: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
          {color:#FF0000}SEVERE: Failed to save build record{color}

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          New: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
           {color:#ff0000}SEVERE: Failed to save build record{color}

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          Royce Shen made changes -
          Description Original: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
           {color:#ff0000}SEVERE: Failed to save build record{color}

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          New: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
           {color:#172b4d}SEVERE: Failed to save build record{color}

          {color:#172b4d}java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.XmlFile.write(XmlFile.java:200)
           at hudson.model.Run.save(Run.java:2015)
           at hudson.model.Run.execute(Run.java:1876)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:193)
           ... 5 more
          Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 18 more
          Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
           at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 33 more{color}

           

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          Royce Shen made changes -
          Description Original: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
          INFO: TextProc/lmportal #693 main build action completed: SUCCESS
          Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
          INFO: Launching computer LMTools-nrg7-unn2-lmtools as it has been in demand for 1 min 50 sec
          Jan 25, 2019 4:50:51 AM hudson.model.Run execute
           {color:#172b4d}SEVERE: Failed to save build record{color}

          {color:#172b4d}java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.XmlFile.write(XmlFile.java:200)
           at hudson.model.Run.save(Run.java:2015)
           at hudson.model.Run.execute(Run.java:1876)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:193)
           ... 5 more
          Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 18 more
          Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
           at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 33 more{color}

           

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          New: We have a pipeline job in our environment, ever since we updated Jenkins from 2.89,2 to 2.138.2( also updated some Pipeline & Blueocean relating plugins ), something really strange happened. A build that finishes with SUCCESS would later be set to FAILURE, and the icon that shows the status of the build would also be reset to the red failed one. But in the console log, it still shows SUCCESS. Whereas,  a build that finishes with FAILURE would stay failed status.

          This also resulted in the chaos of mail notification, we keep receiving "Job is back to normal" notification.

          The attachments are the console log of successful builds and theirs build status icons. 

          Also get something from Jenkins system log:

          Jan 25, 2019 4:50:42 AM hudson.model.Run execute
           INFO: ***/***#693 main build action completed: SUCCESS
           Jan 25, 2019 4:50:51 AM hudson.slaves.RetentionStrategy$Demand check
           INFO: Launching computer **** as it has been in demand for 1 min 50 sec
           Jan 25, 2019 4:50:51 AM hudson.model.Run execute
           {color:#172b4d}SEVERE: Failed to save build record{color}

          {color:#172b4d}java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.XmlFile.write(XmlFile.java:200)
           at hudson.model.Run.save(Run.java:2015)
           at hudson.model.Run.execute(Run.java:1876)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:193)
           ... 5 more
           Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
           at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
           at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
           at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
           at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 18 more
           Caused by: java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see [https://jenkins.io/redirect/class-filter/]
           at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
           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:265)
           at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
           ... 33 more{color}

           

           

          Would be very grateful if anyone could figure out why this strange thing happens.

           

           
          Royce Shen made changes -
          Labels New: JEP-200
          Oleg Nenashev made changes -
          Component/s Original: pipeline [ 21692 ]

          Oleg Nenashev added a comment -

          "Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat " It is a build name setter plugin. You need to update all plugins in https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+fix+for+JEP-200

          Oleg Nenashev added a comment - " Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetterat " It is a build name setter plugin. You need to update all plugins in https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+fix+for+JEP-200

          Oleg Nenashev added a comment -

          Closing as a duplicate of JENKINS-48944

          Oleg Nenashev added a comment - Closing as a duplicate of JENKINS-48944
          Oleg Nenashev made changes -
          Link New: This issue duplicates JENKINS-48944 [ JENKINS-48944 ]
          Oleg Nenashev made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]

            Unassigned Unassigned
            royce_shen Royce Shen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: