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

No branch name in logs from parallel branches anymore?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • workflow-cps-plugin
    • None

      Before with parallel(), we used to have the branch name in the logs as a prefix for each log message from that branch.

      Now it seems that there is a mechanism to show/hide based on each branch.

      With the code:

      builds = [:]
      builds['foo'] = { echo "message 1" }
      builds['bar'] = { echo "message 2" }
      parallel(builds)
      

      'Before':

      [Pipeline] parallel
      [Pipeline] [foo] { (Branch: foo)
      [Pipeline] [bar] { (Branch: bar)
      [Pipeline] [foo] echo
      [foo] message 1
      [Pipeline] [foo] }
      [Pipeline] [bar] echo
      [bar] message 2
      [Pipeline] [bar] }
      [Pipeline] // parallel
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

      Now:

      [Pipeline] parallel
      [Pipeline] { (Branch: foo)
      [Pipeline] { (Branch: bar)
      [Pipeline] echo
      message 1
      [Pipeline] }
      [Pipeline] echo
      message 2
      [Pipeline] }
      [Pipeline] // parallel
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

            Unassigned Unassigned
            corfr Bertrand Roussel
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: