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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
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 do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.