[Buildbot-devel] Alternate shell on win32

Tim Flink tim at mail.mew.co.jp
Fri Apr 6 01:32:15 UTC 2007


This is a little late, so I don't know if you found a solution but I 
thought I would post this anyways.

I was able to get "echo hello" on my winxp buildslave working using 
either of these statements in my master.cfg:

f.addStep( step.ShellCommand, command = [ 'echo', 'hello' ] )
f.addStep( step.ShellCommand, command =  'echo hello'  )

What version of buildbot and its dependencies are you using?

My buildslave is using:
WindowsXP SP2 (32-bit)
buildbot 0.7.5
Python 2.5 (python.org binary installer)
Twisted 2.5.0 (binary installer for Python 2.5 from twistedmatrix.com)
pywin32-2.1.0 (binary installer for Python 2.5 from sourceforge)

My buildmaster is using:
Fedora Core 6 (x86)
python-twisted 1.3.0 (from fedora yum repository)
buildbot 0.7.5
Python 2.4.4 (from fedora yum repository)


Gianluca Sforna wrote:
> On 3/28/07, Christopher Kermorvant <kermorvant at gmail.com> wrote:
>   
>> Hi,
>>
>> I had this kind of problem.
>>
>> It seems to me that you must define the command line with each
>> argument as an element in a python list :
>> f.addStep(ShellCommand, command=["command.exe","arg1","arg2"])
>>
>> You can check that on your cfg file.
>>     
>
> Done. To be sure I used command=["echo", "hello"] but it failed still.
>
> This time I captured the traceback from the slave:
>
> 2007/03/28 15:54 +0200 [Broker,client] error in ShellCommand._startCommand
> 2007/03/28 15:54 +0200 [Broker,client] Unhandled Error
>         Traceback (most recent call last):
>           File "c:\Python24\lib\site-packages\buildbot\slave\bot.py", line 169,
> in remote_startCommand
>             d = self.command.doStart()
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 616, in doStart
>             d = defer.maybeDeferred(self.start)
>           File "C:\Python24\lib\site-packages\twisted\internet\defer.py", line 1
> 07, in maybeDeferred
>             result = f(*args, **kw)
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 965, in start
>             d = self.command.start()
>         --- <exception caught here> ---
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 294, in start
>             self._startCommand()
>           File "c:\Python24\lib\site-packages\buildbot\slave\commands.py", line
> 376, in _startCommand
>             usePTY=self.usePTY)
>           File "C:\Python24\lib\site-packages\twisted\internet\posixbase.py", li
> ne 374, in spawnProcess
>             return Process(self, processProtocol, executable, args, env, path)
>           File "C:\Python24\lib\site-packages\twisted\internet\_dumbwin32proc.py
> ", line 183, in __init__
>             raise OSError(pwte)
>         exceptions.OSError: (267, 'CreateProcess', 'The directory name is invali
> d.')
>
> 2007/03/28 15:54 +0200 [Broker,client] SlaveBuilder.commandFailed <buildbot.slav
> e.commands.SlaveShellCommand instance at 0x01288210>
> 2007/03/28 15:54 +0200 [Broker,client] Unhandled Error
>         Traceback (most recent call last):
>         Failure: buildbot.slave.commands.AbandonChain: -1
>
> Sounds like something known?
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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