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

Steps that accept closure overwrite parallel branch context logs

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • pipeline
    • None
    • Jenkins 2.0, Pipeline plugins 2.0, Linux master, Windows slaves

      When within a parallel branch and using steps that accept a closure (such as 'withEnv', 'dir' or 'timeout') the parallel context prepended in log is lost after the step has completed. This doesn't happen if a closure is called directly.

      See example script and log.

          [JENKINS-34501] Steps that accept closure overwrite parallel branch context logs

          Nick Sonneveld created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170630 ] New: JNJira + In-Review [ 183982 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-31595 [ JENKINS-31595 ]
          Jesse Glick made changes -
          Labels Original: pipeline workflow
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-28222 [ JENKINS-28222 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            jglick Jesse Glick
            sonneveldsmartward Nick Sonneveld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: