|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
cruisecontrol with antHi,
I new in this list of users and I want to use cruisecontrol.rb with ant. My problem is that the return message of ant is "BUILD FAILED", but the message of cruisecontrol is "Build 17251.5 finished SUCCESSFULLY". In my projetct, I write the cruise_config.rb "project.build_command = 'ant -buildfile ./build/Teste.xml'". cruisecontrol.rb = version 1.4.0 ant = version 1.7.1 Somebody help-me? Hugs, Rodrigo _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: cruisecontrol with antCC.rb is looking into the exit code of the build command. If it's non-zero, it's "build failed". If it's zero, it's "build sucessful". It doesn't parse the build output to make that decision.
On Tue, Sep 22, 2009 at 1:18 PM, Rodrigo Cascarrolho <rdgcasca@...> wrote: Hi, -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: cruisecontrol with antOn Tue, Sep 22, 2009 at 1:18 PM, Rodrigo Cascarrolho <rdgcasca@...> wrote:
> Hi, > I new in this list of users and I want to use cruisecontrol.rb with ant. My > problem is that the return message of ant is "BUILD FAILED", but the message > of cruisecontrol is "Build 17251.5 finished SUCCESSFULLY". In my projetct, I > write the cruise_config.rb "project.build_command = 'ant -buildfile > ./build/Teste.xml'". If you run your ant command from the command line, what is the value of the return code 'echo $?' If it is zero, can you alter your build command to print it out? Maybe it is behaving differently under the ccrb environment. You can also try it with a dummy ant script that just succeeds or fails, and see if you get a different behavior. -- Chad _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: cruisecontrol with antChad,
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. 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' Any suggestion? tks Rodrigo On Tue, Sep 22, 2009 at 6:27 PM, Chad Woolley <thewoolleyman@...> wrote:
_______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: cruisecontrol with antOn Wed, Sep 30, 2009 at 2:09 PM, Rodrigo Cascarrolho <rdgcasca@...> wrote:
Chad, 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: -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
|
|
Re: cruisecontrol with antAlexey,
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 <alexey.verkhovsky@...> wrote:
_______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users@... http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users |
| Free embeddable forum powered by Nabble | Forum Help |