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

Build Name Setter Plugin is affected by JEP-200 in Jenkins 2.102+

      Our FreeStyle Jobs which set their build names after the build fail with 2.102. The exception is:

       

      [INFO] ------------------------------------------------------------------------
      Set build name.
      New build name is '15 : CMSD-2740...'
      FATAL: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
      java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/

      ...

      Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild

      ...
      Caused: java.io.IOException
      at hudson.XmlFile.write(XmlFile.java:201)
      at hudson.model.Run.save(Run.java:1923)
      at hudson.model.Run.setDisplayName(Run.java:803)
      at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:76)

      The full exception is attached to this ticket.

          [JENKINS-48944] Build Name Setter Plugin is affected by JEP-200 in Jenkins 2.102+

          Hakan Tandogan created issue -
          Hakan Tandogan made changes -
          Remote Link New: This issue links to "Page (Jenkins Wiki)" [ 19792 ]
          Oleg Nenashev made changes -
          Assignee Original: Lev Mishin [ le0 ] New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Summary Original: Build Name Setter Plugin is likely affected by JEP-200 in Jenkins 2.102+ New: Build Name Setter Plugin is affected by JEP-200 in Jenkins 2.102+

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - Created https://github.com/jenkinsci/build-name-setter-plugin/pull/17
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/build-name-setter-plugin/pull/17 (Web Link)" [ 19793 ]
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Oleg Nenashev made changes -
          Remote Link Original: This issue links to "Page (Jenkins Wiki)" [ 19792 ]

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/plugins/EnvironmentVarSetter.java
          http://jenkins-ci.org/commit/build-name-setter-plugin/253b15bdb024ac968c853fb8e74ec6fefd952cff
          Log:
          JENKINS-48944 - Prevent serialization of PrintStreams to XStream (JEP-200)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/plugins/EnvironmentVarSetter.java http://jenkins-ci.org/commit/build-name-setter-plugin/253b15bdb024ac968c853fb8e74ec6fefd952cff Log: JENKINS-48944 - Prevent serialization of PrintStreams to XStream (JEP-200)

            oleg_nenashev Oleg Nenashev
            hakan Hakan Tandogan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: