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

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

    • Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4, Blue Ocean 1.2

      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]

          [JENKINS-45664] blue-ocean parallel streams are not showing up red on a stream failure

          karthik paidi created issue -

          James Dumay added a comment -

          karthik546 can you please post a formatted version of your example?

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

          karthik paidi added a comment -

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

          [^samplescript]

          karthik paidi added a comment - jamesdumay sorry for the above format i attached a text file with the script. [^samplescript]
          Daniel Beck made changes -
          Labels Original: 2.0 blueocean pipeline New: blueocean pipeline
          James Dumay made changes -
          Description Original: 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" : \{

           }
           }
           }
           )

           
          New: 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}
           
          James Dumay made changes -
          Description Original: 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}
           
          New: *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]

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

              Created:
              Updated:
              Resolved: