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

Inputs not showing in inner most nested parallels

    Details

    • Similar Issues:

      Description

      Original request
      For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

      stage ("stage1") {
        parallel (
          "s1": {
            parallel (
            	"DB": {
            		node {
            			println("Done DB1")
            			println("Done DB2")
            		}
            	},
            	"ENV": {
            		node {
                  input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                  println("done env")
            		}
            	}
            )
            node {
            		println("Done ENV2")
            }
            node {
              input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
              println("Done ")
            }	
          }
        )
      }
      

        Attachments

        1. first.png
          first.png
          59 kB
        2. jenkins_BO_bug_1.png
          jenkins_BO_bug_1.png
          21 kB
        3. jenkins_BO_bug_2.png
          jenkins_BO_bug_2.png
          24 kB
        4. second.png
          second.png
          47 kB

          Issue Links

            Activity

            kopper8 Avi K created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Description For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            Hide
            jamesdumay James Dumay added a comment -

            Avi K could you please provide a screenshot of what can be seen?

            Show
            jamesdumay James Dumay added a comment - Avi K could you please provide a screenshot of what can be seen?
            jamesdumay James Dumay made changes -
            Summary Blue Ocean Process details view failing to show input request for nested requests Inputs not showing in nested parallels
            jamesdumay James Dumay made changes -
            Link This issue is blocked by JENKINS-38442 [ JENKINS-38442 ]
            jamesdumay James Dumay made changes -
            Description For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            jamesdumay James Dumay made changes -
            Description This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            {panel:title=Support for inputs in nested parallels requires better support for nested stages and parallels|titleBGColor=lightgrey}
            This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-38490 [ 174672 ]
            jamesdumay James Dumay made changes -
            Summary Inputs not showing in nested parallels Inputs not showing in inner most nested parallels
            jamesdumay James Dumay made changes -
            Description {panel:title=Support for inputs in nested parallels requires better support for nested stages and parallels|titleBGColor=lightgrey}
            This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            jamesdumay James Dumay made changes -
            Description {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            This is blocked by JENKINS-38442. Blue Ocean does not handle nesting of stages or parallels at this time.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            jamesdumay James Dumay made changes -
            Description {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            kopper8 Avi K made changes -
            Attachment jenkins_BO_bug_1.png [ 36046 ]
            kopper8 Avi K made changes -
            Attachment jenkins_BO_bug_2.png [ 36047 ]
            Hide
            kopper8 Avi K added a comment -

            Hi , Added screenshots, you can see that the pipeline is paused, waiting for an input, but in the pipeline view, it is not showing input request

            Show
            kopper8 Avi K added a comment - Hi , Added screenshots, you can see that the pipeline is paused, waiting for an input, but in the pipeline view, it is not showing input request
            Hide
            jamesdumay James Dumay added a comment -

            Vivek Pandey is there a known limitation here?

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey is there a known limitation here?
            jamesdumay James Dumay made changes -
            Priority Major [ 3 ] Minor [ 4 ]
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-38490 [ 174672 ] JENKINS-43952 [ 181484 ]
            jamesdumay James Dumay made changes -
            Description {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
            parallel (
            "s1": {
            parallel (
            "DB": {
            node {
            println("Done DB1")
            println("Done DB2")
            }
            },
            "ENV": {
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("done env")
            }
            }

            )
            node {
            println("Done ENV2")

            }
            node {
            input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
            println("Done ")

            }

            }


            )

            }
            {code}
            {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
              parallel (
                "s1": {
                  parallel (
                   "DB": {
                   node {
                   println("Done DB1")
                   println("Done DB2")
                   }
                   },
                   "ENV": {
                   node {
                        input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                        println("done env")
                   }
                   }
                  )
                  node {
                   println("Done ENV2")
                  }
                  node {
                    input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                    println("Done ")
                  }
                }
              )
            }
            {code}
            jamesdumay James Dumay made changes -
            Description {panel:title=This bug requires Blue Ocean to solve better support for nested stages and parallels|titleBGColor=lightgrey}
            Blue Ocean does not handle nesting of stages or parallels at this time. See JENKINS-38442 for more information.
            {panel}

            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
              parallel (
                "s1": {
                  parallel (
                   "DB": {
                   node {
                   println("Done DB1")
                   println("Done DB2")
                   }
                   },
                   "ENV": {
                   node {
                        input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                        println("done env")
                   }
                   }
                  )
                  node {
                   println("Done ENV2")
                  }
                  node {
                    input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                    println("Done ")
                  }
                }
              )
            }
            {code}
            *Original request*
            For this pipeline , in Blue Ocean, it requests input once, the second input request is not shown and the flow is paused

            {code}
            stage ("stage1") {
              parallel (
                "s1": {
                  parallel (
                   "DB": {
                   node {
                   println("Done DB1")
                   println("Done DB2")
                   }
                   },
                   "ENV": {
                   node {
                        input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                        println("done env")
                   }
                   }
                  )
                  node {
                   println("Done ENV2")
                  }
                  node {
                    input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                    println("Done ")
                  }
                }
              )
            }
            {code}
            Hide
            jamesdumay James Dumay added a comment - - edited

            Avi K on further review this problem is related to JENKINS-35836. The problem is that your last input in your example is not wrapped in its own parallel branch or within a stage.

            You cannot visualise steps placed after a parallel block. For example, where println("Done ENV2") or the last input is placed. They have to go on in their own stage to be visualised on the graph.

            Something like the modification below would work:

            stage("stage 1") {
              parallel(
                "s1": {
                  parallel (
                    "DB": {
                      node {
                        println("Done DB1")
                        println("Done DB2")
                      }
                    },
                    "ENV": {
                      node {
                        input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                        println("done env")
                      }
                    }
                  )
                }
              )
            }
            
            stage('second input') {
              node {
                input message: 'What do you want to do here?', parameters: [choice(choices: 'Rerun\nSkip\nAbort', description: '', name: '')], submitterParameter: ''
                println("Done ")
              }	
            }
            

            That would visualize the pipeline like so:

            First input approval

            Second input approval

            Show
            jamesdumay James Dumay added a comment - - edited Avi K on further review this problem is related to JENKINS-35836 . The problem is that your last input in your example is not wrapped in its own parallel branch or within a stage. You cannot visualise steps placed after a parallel block. For example, where println("Done ENV2") or the last input is placed. They have to go on in their own stage to be visualised on the graph. Something like the modification below would work: stage( "stage 1" ) { parallel( "s1" : { parallel ( "DB" : { node { println( "Done DB1" ) println( "Done DB2" ) } }, "ENV" : { node { input message: 'What do you want to do here?' , parameters: [choice(choices: 'Rerun\nSkip\nAbort' , description: '', name: ' ')], submitterParameter: ' ' println( "done env" ) } } ) } ) } stage( 'second input' ) { node { input message: 'What do you want to do here?' , parameters: [choice(choices: 'Rerun\nSkip\nAbort' , description: '', name: ' ')], submitterParameter: ' ' println( "Done " ) } } That would visualize the pipeline like so: First input approval Second input approval
            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 -
            Attachment second.png [ 38163 ]
            Attachment first.png [ 38164 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                kopper8 Avi K
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: