How to getScriptPath() from SCMSourceCriteria

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to getScriptPath() from SCMSourceCriteria

pallen
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bb380214-f5d8-436d-bb75-a6eefd46f1db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to getScriptPath() from SCMSourceCriteria

Jesse Glick-4
On Thu, Oct 12, 2017 at 11:19 AM, pallen <[hidden email]> wrote:
> I would like to know the ScriptPath in my implementation of
> build(SCMHead, SCMRevision) method.

Why would that be relevant? Does not make any sense to me.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1otgUu66ufLrFJOEpa8NeTr-CayW0sHRf6vmaHx3AcFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.