[Buildbot-devel] Redirect buildstep output to a file.

Schmiedlin, Joshua jschmi10 at harris.com
Tue Nov 20 20:21:40 UTC 2007


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.

	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
	The filename, directory name, or volume label syntax is
incorrect.
	program finished with exit code 1

Any thoughts on how I can go about redirecting the stdout of the svn log
command to a file that is local on the slave machine?

Thanks,

Joshua L. Schmiedlin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20071120/abbfb0a9/attachment.html>


More information about the devel mailing list