Git plugin to pull a branch into a specific target folder

27 views
Skip to first unread message

Eric Wood

unread,
Mar 18, 2015, 4:19:20 PM3/18/15
to Jenkinsci-users
I'm using the GIT plugin to pull a branch of code and want to be able to specify a target folder (the way the SVN plugin does it).  How can I say pull this branch of code ans stick it into a specific target folder?


I'm currently using Jenkins 1.554.3 and the 2.2.12 of the GITplugin.



Eric Wood

unread,
Mar 18, 2015, 4:24:35 PM3/18/15
to jenkins...@googlegroups.com
Let me add one additional behavior.  I'm pulling three different branches and need each one to go to a separate target folder.



On Wednesday, March 18, 2015 4:19 PM, Eric Wood <eric...@rocketmail.com> wrote:


I'm using the GIT plugin to pull a branch of code and want to be able to specify a target folder (the way the SVN plugin does it).  How can I say pull this branch of code ans stick it into a specific target folder?


I'm currently using Jenkins 1.554.3 and the 2.2.12 of the GITplugin.



--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/387357350.22310.1426709948487.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Eric Wood

unread,
Mar 18, 2015, 5:19:16 PM3/18/15
to jenkins...@googlegroups.com
I have added the multi SCM plugin and I can add several GIT SCMs per job so each pull of the branch can specify a unique target folder, but this seems a bit like a indirect means of getting to my end goal.  Are there other options for pulling multiple branches and specifying a unique target folder for each one?



Mark Waite

unread,
Mar 18, 2015, 5:29:04 PM3/18/15
to jenkins...@googlegroups.com
The git plugin (of itself) does not have any support for multiple copies of the same repository within a single job.  The multi-SCM plugin is the way to do it.


For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages