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