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

parallel steps only show branchname as prefix in console output

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Wit parallel step execution, only the branch name of the parallel step is added as console output prefix. This can become very complicated if the parallel step contains multiple stages.

      It only outputs [branchname] LOG

      It should output [branchname][current stage] LOG.

       

      For example if we takes this verry simple usecase:

       

      stages =["test", "quality", "deploy"]
      branches = [:]
      for(stagename in stages) {
          def name = stagename
          branches[name]= {
              node("master") {
                  stage("build " + name) {
                      echo "building...."
                  }
                  stage(name) {
                      echo "doing stuff...."
                  }
              }
          }
      }
      parallel branches
      

      Outputs:

      [Pipeline] [quality] {
      [Pipeline] [test] stage
      [Pipeline] [test] { (build test)
      [Pipeline] [quality] stage
      [Pipeline] [quality] { (build quality)
      [Pipeline] [deploy] {
      [Pipeline] [test] echo
      [test] building....
      [Pipeline] [test] }
      [Pipeline] [quality] echo
      [quality] building....
      [Pipeline] [quality] }
      [Pipeline] [deploy] stage
      [Pipeline] [deploy] { (build deploy)
      [Pipeline] [deploy] echo
      [deploy] building....
      [Pipeline] [deploy] }
      [Pipeline] [test] // stage
      [Pipeline] [quality] // stage
      [Pipeline] [test] stage
      [Pipeline] [test] { (test)
      [Pipeline] [quality] stage
      [Pipeline] [quality] { (quality)
      [Pipeline] [deploy] // stage
      [Pipeline] [deploy] stage
      [Pipeline] [deploy] { (deploy)
      [Pipeline] [test] echo
      [test] doing stuff....
      [Pipeline] [test] }
      [Pipeline] [quality] echo
      [quality] doing stuff....
      [Pipeline] [quality] }
      [Pipeline] [deploy] echo
      [deploy] doing stuff....
      [Pipeline] [deploy] }
      [Pipeline] [test] // stage
      [Pipeline] [quality] // stage
      [Pipeline] [test] }
      [Pipeline] [quality] }
      [Pipeline] [deploy] // stage
      [Pipeline] [deploy] }
      [Pipeline] [test] // node
      [Pipeline] [quality] // node
      [Pipeline] [test] }
      [Pipeline] [quality] }
      [Pipeline] [deploy] // node
      [Pipeline] [deploy] }
      [Pipeline] // parallel
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

       

        Attachments

          Activity

          roel0 roel postelmans created issue -
          roel0 roel postelmans made changes -
          Field Original Value New Value
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          abayer Andrew Bayer made changes -
          Component/s workflow-cps-plugin [ 21713 ]
          Component/s pipeline [ 21692 ]
          jglick Jesse Glick made changes -
          Component/s workflow-job-plugin [ 21716 ]
          Component/s workflow-cps-plugin [ 21713 ]
          Labels jenkins parallel pipeline parallel

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            roel0 roel postelmans
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: