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

Schmiedlin, Joshua jschmi10 at harris.com
Wed Nov 21 16:11:18 UTC 2007


Axel,

My first posting gives the results of just passing the svn log command
as a string.  I end up with the error: "The filename, directory name, or
volume label syntax is incorrect."

So in short I agree with you based on what I have read in the
documentation, but it doesn't seem to work.  I'm hoping it is some
boneheaded error on my part, but I'm not sure what yet.

Thanks,

Josh

-----Original Message-----
From: Axel Hecht [mailto:l10n.moz at googlemail.com] 
Sent: Wednesday, November 21, 2007 11:07 AM
To: Schmiedlin, Joshua
Cc: buildbot-devel at lists.sourceforge.net
Subject: Re: [Buildbot-devel] Redirect buildstep output to a file.


"svn log -v --xml -r 368:HEAD > gppSVN.log"

should work.

Axel

2007/11/21, Schmiedlin, Joshua <jschmi10 at harris.com>:
> 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
>
>
------------------------------------------------------------------------
-
> 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