[Buildbot-devel] 回复: source code update via SVN

雷东壁 dongbi_lei at yahoo.com
Tue Jul 28 11:45:09 UTC 2009


My case is:
1. start buildmaster and buildslave;
2. the builder is triggered and SVN starts to delete all source codes and checkout new copy from server, it will take a long time;
2. stop buildmaster and buildslave, then restart them, step2 will run again, all source codes are deleted and checkouted for the 2nd time.

I don't think it works in 'update' mode...what's wrong with it?

thx!



----- 原始邮件 ----
发件人: Charles Lepple <clepple at gmail.com>
收件人: 雷东壁 <dongbi_lei at yahoo.com>
抄送: buildbot maillist <buildbot-devel at lists.sourceforge.net>
已发送: 2009/7/28(周二), 下午7:36:31
主题: Re: [Buildbot-devel] source code update via SVN

On Jul 27, 2009, at 2:41 AM, 雷东壁 wrote:

> I'm using SVN to watch and update source code. But when there are some updates in source code server, it will delete and checkout all the source code in 'build' dir on buildslave server. It's terribly time consuming! What I want is just updating the changed source files.
[...]
> f1.addStep(SVN,
>            svnurl='https://rep.project.com/SourceCode',
>             mode='update',
>            alwaysUseLatest = True,
>            haltOnFailure = True)
> ...........
> 
> The build steps are omitted. This f1.addStep above will result in the time consuming code checkout. How to avoid it?

"mode='update'" should only take a long time on the initial checkout, or if a change happens on another branch (Buildbot only keeps one working copy around).

If the slowdown is due to changing branches, you may be interested in this patch:

http://buildbot.net/trac/ticket/97

But in that case, you may want "mode='copy'" to avoid the problem that Dustin describes in the last comment there.


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/




More information about the devel mailing list