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

Parallel branches with no stage should not be displayed in Blue Ocean

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With the following pipeline:

      stage("begin") { println "begin" }
      
      parallel (
          "no_stage": { println "no stage" },
          
          "": { println "no name" },
          
          "with_stage": { stage("my_stage") { println "named stage" } }
      )
      
      stage("end") { println "end" }
      

      we are getting the following display in BlueOcean:

      But in the parallel step, only the third branch has a stage defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
      Additionally, the name displayed for the third branch is the branch name instead of the stage name as one would have thought.

      On the other hand, in the Pipeline view it is displayed as expected:

      Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

      May be possible to add a boolean option to the parallel step not to use branch name as default display name in Blue Ocean, and eventually make branch with no stage invisible ?

        Attachments

          Issue Links

            Activity

            jguigui Jean-Paul G created issue -
            jguigui Jean-Paul G made changes -
            Field Original Value New Value
            Description With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third step as a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage

            Typically in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.
            With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third branch has a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
            Additionally, the name displayed for the third branch is the *branch name* instead of the *stage name* as one would have thought.

            On the other hand, in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

            May be possible to add an boolean option to the parallel step not to use branch name as default display name in Blue Ocean ?
            jguigui Jean-Paul G made changes -
            Description With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third branch has a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
            Additionally, the name displayed for the third branch is the *branch name* instead of the *stage name* as one would have thought.

            On the other hand, in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

            May be possible to add an boolean option to the parallel step not to use branch name as default display name in Blue Ocean ?
            With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third branch has a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
            Additionally, the name displayed for the third branch is the *branch name* instead of the *stage name* as one would have thought.

            On the other hand, in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

            May be possible to add a boolean option to the parallel step not to use branch name as default display name in Blue Ocean ?
            jguigui Jean-Paul G made changes -
            Description With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third branch has a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
            Additionally, the name displayed for the third branch is the *branch name* instead of the *stage name* as one would have thought.

            On the other hand, in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

            May be possible to add a boolean option to the parallel step not to use branch name as default display name in Blue Ocean ?
            With the following pipeline:
            {code:java}
            stage("begin") { println "begin" }

            parallel (
                "no_stage": { println "no stage" },
                
                "": { println "no name" },
                
                "with_stage": { stage("my_stage") { println "named stage" } }
            )

            stage("end") { println "end" }
            {code}
            we are getting the following display in BlueOcean:

            !blueocean.png!

            But in the parallel step, only the third branch has a *stage* defined, and therefore only this one is expected to be displayed. Unfortunately all the branches are displayed even if not containing any stage.
            Additionally, the name displayed for the third branch is the *branch name* instead of the *stage name* as one would have thought.

            On the other hand, in the Pipeline view it is displayed as expected:

            !stages.png!

            Use case: technical steps which need to run in parallel to maintain shared resources, advance timeout monitoring, etc ... doesn't have to pollute the Blue Ocean view.

            May be possible to add a boolean option to the parallel step not to use branch name as default display name in Blue Ocean, and eventually make branch with no stage invisible ?
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-43953 [ 181485 ]
            jguigui Jean-Paul G made changes -
            Link This issue is related to JENKINS-38442 [ JENKINS-38442 ]
            jguigui Jean-Paul G made changes -
            Attachment image-2017-06-22-12-33-47-644.png [ 38583 ]
            jguigui Jean-Paul G made changes -
            Attachment image-2017-06-22-12-47-13-324.png [ 38584 ]
            jguigui Jean-Paul G made changes -
            Attachment image-2017-06-22-12-53-45-573.png [ 38585 ]
            pbro Paolo Brocco made changes -
            Link This issue is related to JENKINS-47473 [ JENKINS-47473 ]
            jamesdumay James Dumay made changes -
            Link This issue is related to JENKINS-47473 [ JENKINS-47473 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 18147 ]
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-47799 [ JENKINS-47799 ]
            jamesdumay James Dumay made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jguigui Jean-Paul G
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: