-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.46.1, conditional-buildstep@1.3.5, Ubuntu 16.04, Java 1.7.0_79-b15
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() }
Attachment | New: Screen Shot 2017-05-01 at 10.32.52 AM.png [ 37501 ] |
Component/s | New: job-dsl-plugin [ 16720 ] | |
Component/s | Original: conditional-buildstep-plugin [ 15947 ] |
Assignee | Original: Dominik Bartholdi [ domi ] | New: Daniel Spilker [ daspilker ] |
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. |
Assignee | Original: Daniel Spilker [ daspilker ] |
How did you come up with this syntax? as far as I know conditional-buildstep does not support pipeline (and most probably also does not make sense in pipeline).
Anyway when I run your script, then I get this:
...No such DSL method 'singleConditionalBuilder'...
...which clearly says that there is no such command like singleConditionalBuilder