[Buildbot-devel] 回复: how to close the log of shellcommand on Windows?

雷东壁 dongbi_lei at yahoo.com
Thu Sep 24 03:21:24 UTC 2009


Thx Marcus!

I tried:
ShellCommand(command = ['start', 'cmd.exe', 'mybat.bat'])       
   -- mybat.bat wouldn't work

ShellCommand(command = ['call', 'mybat.bat'])                         
   -- the output of mybat.bat would be displayed in buildbot stdio, and buildbot would keep in    'building' status, as I wrote in the original mail

ShellCommand(command = ['start', 'mybat.bat'])
   -- on output in buildbot stdio, but buildbot also would keep in 'building' status

It seems shellcommand starts the batch file but does not receive the return code from the new process, so it will keep in 'building' status. Is there any way to finish the shellcommand without receiving a return code?

Bill



----- 原始邮件 ----
发件人: Marcus Lindblom <macke at yar.nu>
收件人: buildbot-devel at lists.sourceforge.net
已发送: 2009/9/24(周四), 上午5:06:13
主   题: Re: [Buildbot-devel] how to close the log of shellcommand on Windows?

雷东壁 wrote:
> Hi all,
> 
> Now I want to start JBOSS in ShellCommand after auto build to implement auto deploy.
> But the startup batch file of JBOSS will keep a console alive and output INFO messages without an ending, even I write another batch file to call the JBOSS startup file, the same thing happens. So the status in buildbot waterfall will keep in "building" status...It's not what I want.
> 
> My question is, how to close the watching of log files for ShellCommand? That's to say, in one build step, just execute the ShellCommand, but not monitor the output of command.

Add 'start' as a prefix. That kicks off stuff in the background.

I.e. ['start', 'cmd.exe', 'mybat.bat'] ...

/Marcus


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel



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




More information about the devel mailing list