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

blue-ocean parallel streams are not showing up red on a stream failure

    Details

    • Similar Issues:
    • Sprint:
      Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4, Blue Ocean 1.2

      Description

      Problem
      parallel streams are wrapped up in try catch blocks and when one stream fails at the end of the build it is not showing that stream red instead it is showing all the streams as green.

      Example
      See [^samplescript]

        Attachments

          Issue Links

            Activity

            karthik546 karthik paidi created issue -
            Hide
            jamesdumay James Dumay added a comment -

            karthik paidi can you please post a formatted version of your example?

            Show
            jamesdumay James Dumay added a comment - karthik paidi can you please post a formatted version of your example?
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Assignee James Dumay [ jamesdumay ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.2-beta3 [ 346 ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.2-beta3 [ 346 ] Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4 [ 346, 361 ]
            karthik546 karthik paidi made changes -
            Attachment samplescript [ 39007 ]
            Hide
            karthik546 karthik paidi added a comment -

            James Dumay sorry for the above format i attached a text file with the script.

            [^samplescript]

            Show
            karthik546 karthik paidi added a comment - James Dumay sorry for the above format i attached a text file with the script. [^samplescript]
            danielbeck Daniel Beck made changes -
            Labels 2.0 blueocean pipeline blueocean pipeline
            jamesdumay James Dumay made changes -
            Description parallel streams are wrapped up in try catch blocks and when one stream fails at the end of the build it is not showing that stream red instead it is showing all the streams as green.

            parallel (
             "stream 3" : \{

             
             parallel (
             "stream 4": \{

             
             parallel (
             "stream 5": \{
            },
             "stream 6": \{


             }
             )
             
             }
             
             },
             
             "stream6" : \{
             stage('2') \{
             try\{
             xxx
             }catch(e) \{
             error 'failed'
             throw e
             }
             
             }

             
             }
             )
             },
             "stream 7" : \{
             stage('1') \{
             try\{
             
             }catch (e)\{
             
             error 'failed'
             }
             }
             

             
             },
             
             
             "stream 8" : \{

             }
             }
             }
             )

             
            parallel streams are wrapped up in try catch blocks and when one stream fails at the end of the build it is not showing that stream red instead it is showing all the streams as green.

            {noformat}
            parallel (
             "stream 3" : \{

             
             parallel (
             "stream 4": \{

             
             parallel (
             "stream 5": \{
            },
             "stream 6": \{


             }
             )
             
             }
             
             },
             
             "stream6" : \{
             stage('2') \{
             try\{
             xxx
             }catch(e) \{
             error 'failed'
             throw e
             }
             
             }

             
             }
             )
             },
             "stream 7" : \{
             stage('1') \{
             try\{
             
             }catch (e)\{
             
             error 'failed'
             }
             }
             

             
             },
             
             
             "stream 8" : \{

             }
             }
             }
             )
            {noformat}
             
            jamesdumay James Dumay made changes -
            Description parallel streams are wrapped up in try catch blocks and when one stream fails at the end of the build it is not showing that stream red instead it is showing all the streams as green.

            {noformat}
            parallel (
             "stream 3" : \{

             
             parallel (
             "stream 4": \{

             
             parallel (
             "stream 5": \{
            },
             "stream 6": \{


             }
             )
             
             }
             
             },
             
             "stream6" : \{
             stage('2') \{
             try\{
             xxx
             }catch(e) \{
             error 'failed'
             throw e
             }
             
             }

             
             }
             )
             },
             "stream 7" : \{
             stage('1') \{
             try\{
             
             }catch (e)\{
             
             error 'failed'
             }
             }
             

             
             },
             
             
             "stream 8" : \{

             }
             }
             }
             )
            {noformat}
             
            *Problem*
            parallel streams are wrapped up in try catch blocks and when one stream fails at the end of the build it is not showing that stream red instead it is showing all the streams as green.

            *Example*
            See [^samplescript]
            Hide
            jamesdumay James Dumay added a comment -

            karthik paidi which parallel branch in your script should be showing up as failed?

            Show
            jamesdumay James Dumay added a comment - karthik paidi which parallel branch in your script should be showing up as failed?
            Hide
            karthik546 karthik paidi added a comment -

            James Dumay it should fail at stage WRS

            Show
            karthik546 karthik paidi added a comment - James Dumay it should fail at stage WRS
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4 [ 346, 361 ] Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4, Blue Ocean 1.2-beta5 [ 346, 361, 376 ]
            Hide
            jamesdumay James Dumay added a comment -

            karthik paidi the behaviour of stages nested within parallels is not supported by Blue Ocean and its behaviour is undefined. I suspect you will have better result if you remove the "WSH" stage block from within your parallel.

            We are unable to visualise Pipelines of this nature. Please see JENKINS-38442 for more information.

            Show
            jamesdumay James Dumay added a comment - karthik paidi the behaviour of stages nested within parallels is not supported by Blue Ocean and its behaviour is undefined. I suspect you will have better result if you remove the "WSH" stage block from within your parallel. We are unable to visualise Pipelines of this nature. Please see JENKINS-38442 for more information.
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-38442 [ JENKINS-38442 ]
            jamesdumay James Dumay made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            karthik546 karthik paidi made changes -
            Attachment Screen Shot 2017-07-19 at 10.46.39 AM.png [ 38962 ]
            karthik546 karthik paidi made changes -
            Attachment samplescript [ 39007 ]

              People

              • Assignee:
                jamesdumay James Dumay
                Reporter:
                karthik546 karthik paidi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: