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

Parallel pipeline builds fail randomly with java.util.TreeMap$Entry

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      While converting some manually made Jenkinsfiles to a code-generation framework we use to make project skeletons, I thought it is a nice idea to support parallel builds to be scheduled on one agent as well as spread over several ones. So I scripted up a generator of Jenkinsfile markup for that, and found that one running over several agents breaks every few builds in random places, with the last entry in the corresponding stage being a  java.util.TreeMap$Entry exception:

      https://github.com/jimklimov/zproject/blob/jenkins-update/Jenkinsfile 

      while the other one running under one agent did not break this way:

      https://github.com/jimklimov/zproject/blob/jenkins-update-wip1/Jenkinsfile

      One vague guess is that maybe there is a problem collecting log entries from workers in parallel? At least this exception is linked to serialization, and the scripts or programs called from the pipeline do nothing Javish...

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            What version of Declarative do you have installed? This sounds a lot like the various forms of JENKINS-46597, the most recent of which is fixed in the 1.2.5 release that came out today.

            Show
            abayer Andrew Bayer added a comment - What version of Declarative do you have installed? This sounds a lot like the various forms of JENKINS-46597 , the most recent of which is fixed in the 1.2.5 release that came out today.
            Hide
            jimklimov Jim Klimov added a comment -

            Thanks for the heads-up. Elegant PR it is, that #23

            Not sure about the version (not in office now), but Jenkins there was last updated about 10 days ago. For some reason it did not want to fetch the list of updates (anything else with internet works ok), but I guess I'd better wait for merge of https://github.com/jenkinsci/workflow-scm-step-plugin/pull/23 anyway?

            Show
            jimklimov Jim Klimov added a comment - Thanks for the heads-up. Elegant PR it is, that #23 Not sure about the version (not in office now), but Jenkins there was last updated about 10 days ago. For some reason it did not want to fetch the list of updates (anything else with internet works ok), but I guess I'd better wait for merge of https://github.com/jenkinsci/workflow-scm-step-plugin/pull/23  anyway?
            Hide
            abayer Andrew Bayer added a comment -

            Marking this as a dupe - and in any case, https://github.com/jenkinsci/workflow-cps-plugin/pull/189 solves the problem completely. =)

            Show
            abayer Andrew Bayer added a comment - Marking this as a dupe - and in any case, https://github.com/jenkinsci/workflow-cps-plugin/pull/189 solves the problem completely. =)

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                jimklimov Jim Klimov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: