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

If a failure happens outside of parallel branch it isn't shown in a stage

    Details

    • Similar Issues:

      Description

      Solution

      • Fold in steps to their nearest stage so that they appear in the step list
      • When JENKINS-39658 is fixed the error log will be appended to the step

      Original request
      Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

      This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

      See the attached

      This is for the simple pipeline:

      node {
          
          stage('first') {
              sh "echo 42"
          }
          
          stage('par') {
              parallel(
                  "left" : {
                      sh "echo 42"   
                   }, 
                   "right" : {
                      sh "echo 43"
                   }
                  
                  
              )
              
              error "it's all bad"
              
          }
          
      }
      

      What this should do:

      if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

        Attachments

          Issue Links

            Activity

            michaelneale Michael Neale created issue -
            michaelneale Michael Neale made changes -
            Field Original Value New Value
            Epic Link JENKINS-35750 [ 171713 ]
            michaelneale Michael Neale made changes -
            Assignee James Dumay [ jamesdumay ]
            michaelneale Michael Neale made changes -
            Description Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    currentBuild.result = "FAILURE"
                    
                }
                
            }
            {noformat}

            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            michaelneale Michael Neale made changes -
            Description Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            michaelneale Michael Neale made changes -
            Assignee James Dumay [ jamesdumay ]
            michaelneale Michael Neale made changes -
            Summary If a failure happens outside of parallel branch show all nodes as failed If a failure happens outside of parallel branch it isn't shown in a stage
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-39203 [ JENKINS-39203 ]
            jamesdumay James Dumay made changes -
            Link This issue relates to JENKINS-39203 [ JENKINS-39203 ]
            jamesdumay James Dumay made changes -
            Sprint frank [ 156 ]
            michaelneale Michael Neale made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            jamesdumay James Dumay made changes -
            Labels pipeline-error-reporting
            jamesdumay James Dumay made changes -
            Description Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            *In Scope*
            * Fold in steps to their nearest stage

            *Original request*
            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            jamesdumay James Dumay made changes -
            Description *In Scope*
            * Fold in steps to their nearest stage

            *Original request*
            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            *In Scope*
            * Fold in steps to their nearest stage so that they appear in the step list

            *Original request*
            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            jamesdumay James Dumay made changes -
            Description *In Scope*
            * Fold in steps to their nearest stage so that they appear in the step list

            *Original request*
            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            *Solution*
            * Fold in steps to their nearest stage so that they appear in the step list
            * When JENKINS-39658 is fixed the error log will be appended to the step

            *Original request*
            Blue ocean shows parallel branches as separate "nodes" (circles) on the stage graph.

            This means that if a build failure happens outside of a parallel branch, you end up with all green circles but a failed build.

            See the attached !Screen Shot 2016-10-28 at 10.06.00 am.png|thumbnail!

            This is for the simple pipeline:

            {noformat}
            node {
                
                stage('first') {
                    sh "echo 42"
                }
                
                stage('par') {
                    parallel(
                        "left" : {
                            sh "echo 42"
                         },
                         "right" : {
                            sh "echo 43"
                         }
                        
                        
                    )
                    
                    error "it's all bad"
                    
                }
                
            }
            {noformat}

            What this should do:

            if there are steps outside of parallel branches, show them as a node (circle) directly under the stage name (and if any steps fail, that node shows as failed).

            jamesdumay James Dumay made changes -
            Link This issue is blocked by JENKINS-39658 [ JENKINS-39658 ]
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-35836 [ JENKINS-35836 ]
            jamesdumay James Dumay made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            jamesdumay James Dumay made changes -
            Sprint frank [ 156 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal UX-600 (Web Link)" [ 18202 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                michaelneale Michael Neale
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: