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

No branch name in logs from parallel branches anymore?

    • 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
      

          [JENKINS-55137] No branch name in logs from parallel branches anymore?

          We experience exactly the same, not sure when it happen, but probably since last week update

          Evgeny Shepelyuk added a comment - We experience exactly the same, not sure when it happen, but probably since last week update

          Devin Nusbaum added a comment -

          See JENKINS-54304. Release 2.26 of Pipeline Job Plugin rewrote the log handling in Pipeline. Pipeline Job Plugin 2.31, which was released yesterday, displays branch labels in the console view of the classic UI, although there are still some quirks. If not having the branch names in the raw logs is a problem for you, please comment in that ticket so we understand the impact.

          Devin Nusbaum added a comment - See JENKINS-54304 . Release 2.26 of Pipeline Job Plugin rewrote the log handling in Pipeline. Pipeline Job Plugin 2.31, which was released yesterday, displays branch labels in the console view of the classic UI, although there are still some quirks. If not having the branch names in the raw logs is a problem for you, please comment in that ticket so we understand the impact.

          We need the Branch Names in the Raw Logs. We have various tools/log-formatters that parse through raw logs. Please put this back.

          Shah Chowdhury added a comment - We need the Branch Names in the Raw Logs. We have various tools/log-formatters that parse through raw logs. Please put this back.

          Although this states "Resolved", we still have lost branch names from the logs after updating to version 2.80. This creates problems for us.

          Simon Harrison added a comment - Although this states "Resolved", we still have lost branch names from the logs after updating to version 2.80. This creates problems for us.

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

              Created:
              Updated:
              Resolved: