Jenkins pipeline fails with No such property error
The issue was with one of the options present in global security configuration “ Enable script security for job DSL scripts”, which needs to be unchecked.