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

JEP-200 Issues when in Build Flow Plugin

XMLWordPrintable

      When a build that uses groovy-postbuild is started by build-flow the GroovyPostbuildRecorder is unable to update the build.xml while serializing com.cloudbees.plugins.flow.FlowCause.

      These two must be used together - a job started by build flow without groovy does not have issues, or the same project started directly by a user.

      I was able to resolve this by adding the three following entries to whitelisted-classes.txt:

      java.util.concurrent.locks.ReentrantLock
      java.util.concurrent.locks.ReentrantLock$NonfairSync
      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
      

      I do not know what changes may be needed in either of the plugins to correctly resolve this - I'll leave it up to others to create those tickets.

      Attached is the console output for four builds - one for each marshal failure, and the final success run at the end.

        1. console_output_1.txt
          8 kB
          Nathan Jackels
        2. console_output_2.txt
          10 kB
          Nathan Jackels
        3. console_output_3.txt
          8 kB
          Nathan Jackels
        4. console_output_4_success.txt
          0.5 kB
          Nathan Jackels

            Unassigned Unassigned
            nathanjackels Nathan Jackels
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: