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

Marcus Lindblom macke at yar.nu
Mon Sep 28 10:54:35 UTC 2009


雷东壁 wrote:
> Thx Marcus!
> 
> I tried:
> ShellCommand(command = ['start', 'cmd.exe', 'mybat.bat'])       
>    -- mybat.bat wouldn't work

Try adding '/c' to cmd.exe, i,e ['start', 'cmd.exe', '/c', 'mybat.bat'])


> 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

Yup, that doesn't launch an extra process.

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

Ok, that doesn't launch an extra process either.

> 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?

Not other than launching it externally.

There might be an issue with using 'start' as a command right away
perhaps you need to run it through a proxy bat file that runs start.

i.e. something like asynchlauncher.bat:

start cmd /c %1

then use ['asyncynclauncher.bat', 'mybat.bat']

/Marcus

> ----- 原始邮件 ----
> 发件人: 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/
> 
> ------------------------------------------------------------------------------
> 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





More information about the devel mailing list