-
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.
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