Hi Guys,
I'm trying to add support for alternative 'build configurations' in MultiBranch, where users can change the ScriptPath from Jenkinsfile to another name.
JENKINS-45657
Ideally I would like to know the ScriptPath in my implementation of build(SCMHead, SCMRevision) method. However, I may have access to the ScriptPath in the implementation of retrieve(SCMSourceCriteria ...) if SCMSourceCriteria is an instance of WorkflowBranchProjectFactory.
Unfortunately the Factory/Inner class hides the getScriptPath() method and I can't see any clean ways to access it (didn't really want to use reflections).
Kind regards,
Paul