I'm not sure you need a Jenkinsfile to do that, but it certainly seems like
it can be done with a Jenkinsfile if that is your preference.

https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/unstash-different-dir/unstashDifferentDir.groovy
shows
how to checkout a repository, stash the files from the original directory,
then unstash them into a new directory on a different agent.

Mark Waite

On Sun, Oct 9, 2016 at 8:54 PM Mario Rodriguez <[email protected]> wrote:

> Hi, I'm new to Jenkins and I'm trying to find how to clone a git repo and
> then copy some of the files into another server.  Any suggestions what
> plugins can I use ?  or any examples?
>
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/154248b0-c8b9-4c01-a92e-d5607d3fa5e9%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/154248b0-c8b9-4c01-a92e-d5607d3fa5e9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to