Re: Checkout single file from SCM (groovy)

2017-09-27 Thread Carles Capdevila Tejada
> > > I am not sure where you are going with this (and why you are posting > to the dev list). Did you mean to write a plugin for some purpose? I thought that maybe I'd have to write a plugin with a step to do those specific SCM things. But you're right, I should've written first to the

Re: Checkout single file from SCM (groovy)

2017-09-21 Thread Baptiste Mathus
Probably not a dev list question. Le 21 sept. 2017 17:27, "Jesse Glick" a écrit : > On Thu, Sep 21, 2017 at 11:04 AM, Carles Capdevila Tejada > wrote: > > I've also seen that, in the SCM API > > plugin the abstract class SCMFileSystem is able to

Re: Checkout single file from SCM (groovy)

2017-09-21 Thread Jesse Glick
On Thu, Sep 21, 2017 at 11:04 AM, Carles Capdevila Tejada wrote: > I've also seen that, in the SCM API > plugin the abstract class SCMFileSystem is able to retrieve a SCMFile, from > which you can retrieve the contents. Yes:

Checkout single file from SCM (groovy)

2017-09-21 Thread Carles Capdevila Tejada
Hi there, I'd like to implement a groovy script which checks out the contents of a single file from the SCM(be it Git,SVN...). I took a look into the insides of the Branch Source plugin to see how it gets only the Jenkinsfile, but still haven't gotten anything from it. I've also seen that, in