Lambda SeventySeven
2007-Jul-10 22:00 UTC
[Cruisecontrolrb-users] A few questions about CruiseControl.rb
I''m using CruiseControl.rb on Windows Server 2003 and have found it to be extremely useful. I have a few questions, for which I wasn''t able to find answers elsewhere. 1) Is there a service version of "cruise start" for Windows? What I''d like to achieve is to have cruise start at startup. In fact my server gets rebooted sometimes, and I''d love to have cruise up and running when it reboots. 2) I''ve setup the email notification, by specifying my gmail user credentials and the notification emails, but unfortunately no emails have ever been sent. Analyzing the logs I''ve not found anything related to email attempts which failed. 3) It is probably out of the scope of CruiseControl.rb, but I''d like to use it in connection to a local working copy of the repository. Every time CruiseControl.rb detects a successful build, it should run a svn up on a given local folder, though this shouldn''t be the case if the build were to fail. I can hack something together to obtain this functionality, but I''d like some pointers as to where I should look in order to get started with this. Thanks in advance, Lambda. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070710/42d1c652/attachment.html
Thibaut Barrère
2007-Jul-10 22:47 UTC
[Cruisecontrolrb-users] A few questions about CruiseControl.rb
Hi, here''s a couple of tips that may help:> 1) Is there a service version of "cruise start" for Windows? What I''d liketo achieve is to have cruise start at startup. In fact my server gets rebooted sometimes, and I''d love to have cruise up and> running when it reboots.Not sure if there is something built-in in cc.rb for that purpose. You may want to have a look at http://www.duodata.de/ntwrapper/ - I''m using it for one SVN repository which is started as a service on a W2K server. Alternatively I''ve also been using cygwin which provides helpers to boot any command line as a service too (but It''s a bit heavier to download).> 2) I''ve setup the email notification, by specifying my gmail usercredentials and the notification emails, but unfortunately no emails have ever been sent. Analyzing the logs I''ve not found anything related> to email attempts which failed.Did you configure the smtp server in your ~cruise/config/site_config.rb (I suppose so) ? Can the smtp host name be resolved from that machine ? Can you try with a deliberately wrong password to see if something happens ?> 3) It is probably out of the scope of CruiseControl.rb, but I''d like touse it in connection to a local working copy of the repository. Every time CruiseControl.rb detects a successful build, it should run a > svn up on a given local folder, though this shouldn''t be the case if the build were to fail. I can hack something together to obtain this functionality, but I''d like some pointers as to where I should look in> order to get started with this.ccnet.rb is good at calling rake, and with rake it''s easy to call a svn up on a specific folder. Are you using rake ? You could achieve what you describe with something similar to: task :build do # do what you need to build end task :deploy => :build do Dir.chdir(''c:/website'') throw "Failure while updating my website!" unless system(''svn up'') end I''ve been using this a lot with CruiseControl.Net a lot (like: compiling asp.net applications, packaging them, runnings tests, then deploying to an internal staging server if the build is successful) cheers, Thibaut Barr?re -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070711/b04a3dcc/attachment.html