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

          Hide
          cyu4322 Connor Yu added a comment -

          I would also like to see this information.  I have parallel nodes building each with multiple stages and it's hard to tell which stage contains what output.

          Show
          cyu4322 Connor Yu added a comment - I would also like to see this information.  I have parallel nodes building each with multiple stages and it's hard to tell which stage contains what output.

            People

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

              Dates

              Created:
              Updated: