I am trying to create a multibranchPipelineJob in jobDSL, however the Jenkinsfile is at an alternative location to the default. I have looked through the docs https://jenkinsci
The setting is a bit hidden, but the Automatically Generated DSL supports setting the script path for a multibranch job:
multibranchPipelineJob('example') { factory { workflowMultiBranchProjectFactory { scriptPath('my-location/Jenkinsfile') } } }