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

singleConditionalBuilder closure creates FATAL: null java.lang.StackOverFlow error using runner{ run() }

      Using run() in runner causes the error:

      job('example') {
        steps {
          // This is a single step conditional
          singleConditionalBuilder {
            buildStep {
              shell {
                command("ps -ef")
              }
            }
            condition {
              alwaysRun()
            }
            runner {
              run()
            }
          }
        }
      }
      

      If I change it to fail() there's no error.

          [JENKINS-43778] singleConditionalBuilder closure creates FATAL: null java.lang.StackOverFlow error using runner{ run() }

          Eric Wallengren created issue -
          Eric Wallengren made changes -
          Attachment New: Screen Shot 2017-05-01 at 10.32.52 AM.png [ 37501 ]
          Dominik Bartholdi made changes -
          Component/s New: job-dsl-plugin [ 16720 ]
          Component/s Original: conditional-buildstep-plugin [ 15947 ]
          Dominik Bartholdi made changes -
          Assignee Original: Dominik Bartholdi [ domi ] New: Daniel Spilker [ daspilker ]
          Daniel Spilker made changes -
          Description Original: Using run() in runner causes the error:

                    // This is a single step conditional
                    singleConditionalBuilder {
                      buildStep {
                        shell {
                          command("ps -ef")
                        }
                      }
                      condition {
                        alwaysRun()
                      }
                      runner {
                        run()
                      }
                    }

          If I change it to fail() there's no error.

          New: Using run() in runner causes the error:

          {code}
          job('example') {
            steps {
              // This is a single step conditional
              singleConditionalBuilder {
                buildStep {
                  shell {
                    command("ps -ef")
                  }
                }
                condition {
                  alwaysRun()
                }
                runner {
                  run()
                }
              }
            }
          }
          {code}

          If I change it to fail() there's no error.

          Daniel Spilker made changes -
          Assignee Original: Daniel Spilker [ daspilker ]

            Unassigned Unassigned
            fzbassman Eric Wallengren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: