开发者

Hudson Continuous Integration

开发者 https://www.devze.com 2023-04-05 04:37 出处:网络
I am just new to hudson ci. and want to know is there any way to configure it to fetch the source java co开发者_运维问答de from local drive such c:... , d:...

I am just new to hudson ci. and want to know is there any way to configure it to fetch the source java co开发者_运维问答de from local drive such c:... , d:...

Right now, i dont have any source code repository.

If there is a way, please let me know. thanks


My advice: create a source code repository, even if it's just on your local drive.

You must have a source code repository if you want to do any serious software development.

And doing continuous integration without a source code repository is backwards anyway: What do you do when your CI tells you that you have a regression? You can no longer look at the old source code, so the use of that information is very limited.


There is a File System SCM (Plugin ID: filesystem_scm) for that purpose.

Simulate File System as SCM by checking file system last modified date, checkout(), pollChanges(), ChangeLog and distributed build are all supported.

But having a real SCM is crucial for serious development.


You could try using the Execute Shell function for the build. Have the following commands (if using Linux):

rm -rf /path/to/hudson/workspace
cp -r /path/to/source /path/to/hudson/workspace
# Do the rest of your build actions here

EDIT: That said, have a look at the other answers. There's no point having a CI without an SCM system. If you're just playing around with Hudson to see how it looks/feels then you can do what I suggested, but please don't make it a permanent solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消