Pipeline parallel map not supporting curried closures

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When executing a curried closure in parallel the output appears to be cached (see the output for the spam branch below).

      Example pipeline:

      def example_c = { input -> node { echo "$input" } }
      def map = [:]
      map['spam'] = example_c.curry('spam')
      map['eggs'] = example_c.curry('eggs')
      parallel map
      

      Output:

      [Pipeline] parallel
      [Pipeline] [spam] { (Branch: spam)
      [Pipeline] [eggs] { (Branch: eggs)
      [Pipeline] [spam] node
      [spam] Running on java8-jenkins-ec2-slave (i-a541b5be) 
      [Pipeline] [eggs] node
      [Pipeline] [spam] {
      [eggs] Running on java8-jenkins-ec2-slave (i-a541b5be) 
      [Pipeline] [spam] echo
      [spam] eggs
      [Pipeline] }
      [Pipeline] [eggs] {
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] [eggs] echo
      [eggs] eggs
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] // parallel
      [Pipeline] End of Pipeline
      

            Assignee:
            Andrew Bayer
            Reporter:
            Ben Fortuna
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: