How to get hudson's git plugin to clone repo with the name of the repo in the path?

两盒软妹~` 提交于 2019-12-13 02:17:04

问题


Let's say I have a repo called "stuff". git@github.com:mine/stuff.git

when I do a git clone of this repo from the command line, it creates a directory called "stuff" and puts everything in that directory.

When I set up hudson to use git, it puts everything in the directory

$hudson_home/jobs/myjob/workspace/*

with no "stuff" after workspace. Just the items inside of stuff.

How can I make hudson clone the repo like the commandline does, namely:

$hudson_home/jobs/myjob/workspace/stuff/*

I see no options for this and I do not want to change the default workspace path.


回答1:


I don't know whether this feature is in Hudson, since I have upgraded to Jenkins.

But if you click "Advanced" at the bottom of the Git section (there are two "Advanced" buttons), there is a property called "Local subdirectory for repo" which does what you want.



来源:https://stackoverflow.com/questions/7520979/how-to-get-hudsons-git-plugin-to-clone-repo-with-the-name-of-the-repo-in-the-pa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!