Alexey, To solve the problem with ant + Windows XP Pro, I insert the code "exit %%ERRORLEVEL%%" in the line project.build_command.
project.build_command = 'ant -f ./build/buildC.xml && exit %%ERRORLEVEL%%' Now, CC.rb get the correct error code. Thanks for your message. Rodrigo On Wed, Sep 30, 2009 at 8:25 PM, Alexey Verkhovsky < [email protected]> wrote: > On Wed, Sep 30, 2009 at 2:09 PM, Rodrigo Cascarrolho > <[email protected]>wrote: > >> Chad, >> I'm running ccrb and ant in Windows XP Pro, and the return code ('echo >> %ERRORLEVEL%') is zero when ant script return success and non-zero when it >> return build failed, but always the cruisecontrolrb message is success. >> > > That is... odd - I'm putting it mildly. Never heard of a bug like that > before. If you can figure the cause, and it turns out to be CC.rb's fault, I > promise to fix it. > > >> I try to run cruisecontrolrb and ant in Ubuntu Linux 9.04. When I write in >> command line "~/sudo ruby cruise build myproject", the cruisecontrol get the >> correct error code (zero or non-zero), but when I run the command "~/sudo >> ruby cruise start", I recieve the message: >> ./lib/cruise_control/../platform.rb:69:in `exec': Permission denied - >> lib/cruise_control/../../script/../config/../cruise build myproject >> (Errno::EACCES) >> from ./lib/cruise_control/../platform.rb:69:in `safely_exec' >> from ./lib/cruise_control/../platform.rb:47:in `create_child_process' >> > > chmod +x ./cruise should fix that, I'd hope. Trying to run this stuff as > root (with sudo) may not be such a good idea, by the way. > > -- > Alexey Verkhovsky > http://alex-verkhovsky.blogspot.com/ > CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] > > > _______________________________________________ > Cruisecontrolrb-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >
_______________________________________________ Cruisecontrolrb-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
