[Buildbot-devel] Redirect buildstep output to a file.
Schmiedlin, Joshua
jschmi10 at harris.com
Wed Nov 21 15:09:49 UTC 2007
Sergey,
So If I issue the following as a buildstep: ['svn', 'log', '-v',
'--xml', '-r', '368:HEAD', '>', 'gppSVN.log']
I end up with the snippet below....
C:\WINDOWS\system32\cmd.exe /c svn log -v --xml -r 368:HEAD > gppSVN.log
in dir c:\BuildBotSlave\gppDocGen\build (timeout 1200 secs)
watching logfiles {}
argv: ['C:\\WINDOWS\\system32\\cmd.exe', '/c', 'svn', 'log', '-v',
'--xml', '-r', '368:HEAD', '>', 'gppSVN.log']
environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APR_ICONV_PATH=C:\Subversion\iconv
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=ED001462
COMSPEC=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
PATH=C:\Tools\;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\sy
stem32\WBEM;C:\Subversion\bin;C:\Python;C:\Python\Scripts;C:\gs\gs8.13\b
in;C:\gs\gs8.13\lib;C:\Program Files\GnuWin32\bin;C:\Program
Files\PicoZip;C:\Tools;C:\htmldoc;C:\PROGRA~1\ATT\Graphviz\bin;C:\Progra
m Files\7-Zip;C:\oracle\instantclient;C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0407
PROGRAMFILES=C:\Program Files
SCVER=4.0
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=C:\TEMP
TMP=C:\TEMP
USERPROFILE=C:\Documents and Settings\LocalService
WINDIR=C:\WINDOWS
svn: Error resolving case of '>'
program finished with exit code 1
-----Original Message-----
From: buildbot-devel-bounces at lists.sourceforge.net
[mailto:buildbot-devel-bounces at lists.sourceforge.net] On Behalf Of
Sergey A. Lipnevich
Sent: Tuesday, November 20, 2007 10:24 PM
To: buildbot-devel at lists.sourceforge.net
Subject: Re: [Buildbot-devel] Redirect buildstep output to a file.
Schmiedlin, Joshua wrote:
> One of the nightly build steps I would like to run is a tool called
> statSVN. This takes a svn log file as one of its input parameters. I
> currently have a batch file that does this for me, but I would like to
> convert that batch file into buildbot build steps.
>
> Note: This is running on a windowsxp machine and it won't be migrated
to
> unix or linux.
>
> The steps from the batch file are as follows:
> 1 - Update buildslave's working copy of svn
> 2 - svn log > svnlog.log
> 3 - statSVN -outputdir c:\blah svnlog.log <--- where svnlog.log is
its
> input.
>
> My problem is with step two. I have been unsuccessful at getting the
> buildslave to actually run the second step. If I split the command
into
> a list then it doesn't like the '>'. If I run it as a string then I
get
> the following in my log file.
Joshua,
I've done stuff like "echo blah >>file" on Windows XP in a buildstep
without issues, using a command like ['echo', 'blah', '>>file']. What
kind of problem are you having with a command like this?
Sergey.
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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