When trying to use branchDiscoveryTrait, Job DSL throws a javaposse.jobdsl.dsl.DslException, this seems to be similur to #45504.