Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

Matthew Lauber
All, 
   I'm testing out the pipelines and blue ocean UI for our deployment use case.  Basically, we've got 3 different products that are deployed at the same time.  Each deployment starts with deploying to a beta server, and then approving the deployment for the full application.  The issue I'm having is that in the blue ocean UI, I can't get the "Waiting for interactive input" to change parallel branches.  No matter which of the P#-b steps I click on, it shows the "Wait for interactive input" prompt for step P1-b.  Anyone know what's going on here, or have run into this in the past?  I've put a simple test pipeline demonstrating the behavior below.

Thanks,
Matt Lauber

----

pipeline {
    agent none
    stages {
        stage("Step 1") {
            steps {
                echo "Step 1"
            }
        }
        stage("Parallel") {
            parallel {
                stage("P1") {
                    agent { label 'master' }
                    stages {
                        stage("P1-a") {
                            steps {
                                echo "P1-a"
                            }
                        }
                        stage("P1-b") {
                            input {
                                message "Deploy P1-b?"
                                ok "Deploy P1-b"
                            }
                            steps {
                                echo "P1-b"
                            }
                        }
                    }
                }
                stage("P2") {
                    agent { label 'master' }
                    stages {
                        stage("P2-a") {
                            steps {
                                echo "P2-a"
                            }
                        }
                        stage("P2-b") {
                            input {
                                message "Deploy P2-b?"
                                ok "Deploy P2-b"
                            }
                            steps {
                                echo "P2-b"
                            }
                        }
                    }
                }
                stage("P3") {
                    agent { label 'master' }
                    stages {
                        stage("P3-a") {
                            steps {
                                echo "P3-a"
                            }
                        }
                        stage("P3-b") {
                            input {
                                message "Deploy P3-b?"
                                ok "Deploy P3-b"
                            }
                            steps {
                                echo "P3-b"
                            }
                        }
                    }
                }
            }
        }
    }
}

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU9ApffxN8mf8KdTf8vcs8SB_qmfR4vuG0jjAd_p_XsJGjnzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

Ivan Fernandez Calvo
Hi,

I don't think this is supported, it will only work with one input at a time, so probably you have to group your inputs in a stage before your parallel stages

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/721419c2-b338-4c1e-82b8-c276090e6f82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

Matthew Lauber
It handles things alright, in that it will eventually show all prompts.  It just insists on showing them in the order they're in the jenkinsfile, rather than based on which job gets done first.  But thanks,  I given that info, I won't continue to try to figure out a way to do so, and will rework it to handle waiting until all job-a's are done before I ask if we want to deploy the job-b's.  

Thanks,
Matt Lauber

On Saturday, July 13, 2019 at 7:10:46 AM UTC-4, Ivan Fernandez Calvo wrote:
Hi,

I don't think this is supported, it will only work with one input at a time, so probably you have to group your inputs in a stage before your parallel stages

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7f36033b-3222-49fa-8ba6-4ff35270a59d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.