Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested stages inside parallel in declarative pipeline not supported #238

Open
jwalter opened this issue Jun 30, 2020 · 1 comment
Open

Comments

@jwalter
Copy link

jwalter commented Jun 30, 2020

Trying to run the following declarative pipeline with "runScript":

pipeline {
    stages {
        stage('Parallel Stage') {
            parallel {
                stage('Branch A') {
                    stages {
                        stage('Nested 1') {
                            steps {
                                echo "In stage Nested 1 within Branch A"
                            }
                        }
                    }
                }
            }
        }
    }
}

fails with the error message:

No signature of method: com.lesfurets.jenkins.unit.declarative.StageDeclaration.stages() is applicable for argument types: (Jenkinsfile$_run_closure1$_closure2$_closure3$_closure4$_closure5$_closure6) values: [Jenkinsfile$_run_closure1$_closure2$_closure3$_closure4$_closure5$_closure6@477ed37d]
@Willem1987
Copy link
Contributor

@jwalter Could you check if the problem still exists in 1.8? A test was added for this case and it seems to work.

@nre-ableton nre-ableton removed the bug label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants