From christopher.gaudig at dfki.de Thu Sep 16 10:15:44 2010 From: christopher.gaudig at dfki.de (Christopher Gaudig) Date: Thu, 16 Sep 2010 16:15:44 +0200 Subject: [Cruisecontrolrb-users] cc.rb: Set up a multi-repo project Message-ID: <4C922690.8050504@dfki.de> Hi! I would like to find out how to set up a cc.rb project that listens to multiple git repositories for changes and then starts an incremental build. Has anyone done that and could help me? Any suggestions would be greatly appreciated! Thanks! Regards from Bremen, Germany Chris From thewoolleyman at gmail.com Thu Sep 16 15:56:19 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Thu, 16 Sep 2010 12:56:19 -0700 Subject: [Cruisecontrolrb-users] cc.rb: Set up a multi-repo project In-Reply-To: <4C922690.8050504@dfki.de> References: <4C922690.8050504@dfki.de> Message-ID: On Thu, Sep 16, 2010 at 7:15 AM, Christopher Gaudig wrote: > Hi! > > I would like to find out how to set up a cc.rb project that listens to > multiple git repositories for changes and then starts an incremental build. > Has anyone done that and could help me? Any suggestions would be greatly > appreciated! Thanks! > > Regards from Bremen, Germany > Chris You can set up projects which listen to the individual repositories, then trigger the main build project for any commit in these repos. See cruise_config.rb example for how to do this. From christopher.gaudig at dfki.de Fri Sep 17 06:24:59 2010 From: christopher.gaudig at dfki.de (Christopher Gaudig) Date: Fri, 17 Sep 2010 12:24:59 +0200 Subject: [Cruisecontrolrb-users] cc.rb: eMail config Message-ID: <4C9341FB.1010704@dfki.de> Hi again (sorry to bother you), can anyone send me a working eMail configuration, let's say for gmail? I am having trouble with this one here: ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "googlemail.com", :tls => "true", :authentication => :login, :user_name => "myusername at googlemail.com", :password => "mypassword" } It gives me the following error: Error in plugin EmailNotifier: wrong number of arguments (3 for 2) Any help would be appreciated. Thanks! Regards Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From merlagautham at chronus.com Fri Sep 17 10:19:29 2010 From: merlagautham at chronus.com (Satya Gautham) Date: Fri, 17 Sep 2010 19:49:29 +0530 Subject: [Cruisecontrolrb-users] cc.rb: eMail config In-Reply-To: <4C9341FB.1010704@dfki.de> References: <4C9341FB.1010704@dfki.de> Message-ID: ActionMailer::Base.smtp_settings = { :tls => true, :address => "smtp.gmail.com", :port => 587, :domain => "mail.aaaa.com", :authentication => :plain, :user_name => "aaaaa", :password => "aaaaa" } is what we use On Fri, Sep 17, 2010 at 3:54 PM, Christopher Gaudig < christopher.gaudig at dfki.de> wrote: > Hi again (sorry to bother you), > > can anyone send me a working eMail configuration, let's say for gmail? I am > having trouble with this one here: > > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => "googlemail.com", > :tls => "true", > :authentication => :login, > :user_name => "myusername at googlemail.com" > , > :password => "mypassword" > } > > It gives me the following error: > > Error in plugin EmailNotifier: wrong number of arguments (3 for 2) > > Any help would be appreciated. Thanks! > > Regards > Chris > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From public at lrdesign.com Fri Sep 17 12:18:07 2010 From: public at lrdesign.com (Evan Dorn) Date: Fri, 17 Sep 2010 09:18:07 -0700 Subject: [Cruisecontrolrb-users] cc.rb: eMail config In-Reply-To: <4C9341FB.1010704@dfki.de> References: <4C9341FB.1010704@dfki.de> Message-ID: <3592104B-8264-4C3C-B83D-B5F36547EEE8@lrdesign.com> This is a known bug ... IIRC it involves a version of the code that's not prepared to handle the third argument required when connecting to a TLS server. Here are instructions for fixing it: http://jira.public.thoughtworks.org/browse/CCRB-187 Evan On Sep 17, 2010, at 3:24 AM, Christopher Gaudig wrote: > Hi again (sorry to bother you), > > can anyone send me a working eMail configuration, let's say for gmail? I am having trouble with this one here: > > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => "googlemail.com", > :tls => "true", > :authentication => :login, > :user_name => "myusername at googlemail.com", > :password => "mypassword" > } > > It gives me the following error: > > Error in plugin EmailNotifier: wrong number of arguments (3 for 2) > > Any help would be appreciated. Thanks! > > Regards > Chris > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.gaudig at dfki.de Fri Sep 17 12:49:44 2010 From: christopher.gaudig at dfki.de (Christopher Gaudig) Date: Fri, 17 Sep 2010 18:49:44 +0200 Subject: [Cruisecontrolrb-users] cc.rb: eMail config In-Reply-To: <3592104B-8264-4C3C-B83D-B5F36547EEE8@lrdesign.com> References: <4C9341FB.1010704@dfki.de> <3592104B-8264-4C3C-B83D-B5F36547EEE8@lrdesign.com> Message-ID: <4C939C28.1020207@dfki.de> Thanks! That worked like a charm! On 09/17/2010 06:18 PM, Evan Dorn wrote: > This is a known bug ... IIRC it involves a version of the code that's > not prepared to handle the third argument required when connecting to > a TLS server. > > Here are instructions for fixing it: > > http://jira.public.thoughtworks.org/browse/CCRB-187 > > Evan > > > On Sep 17, 2010, at 3:24 AM, Christopher Gaudig wrote: >> Hi again (sorry to bother you), >> >> can anyone send me a working eMail configuration, let's say for >> gmail? I am having trouble with this one here: >> >> ActionMailer::Base.smtp_settings = { >> :address => "smtp.gmail.com ", >> :port => 587, >> :domain => "googlemail.com ", >> :tls => "true", >> :authentication => :login, >> :user_name => "myusername at googlemail.com", >> :password => "mypassword" >> } >> >> It gives me the following error: >> >> Error in plugin EmailNotifier: wrong number of arguments (3 for 2) >> >> >> Any help would be appreciated. Thanks! >> >> Regards >> Chris >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From william.cox at refworks-cos.com Thu Sep 23 19:54:38 2010 From: william.cox at refworks-cos.com (Will Cox) Date: Thu, 23 Sep 2010 16:54:38 -0700 Subject: [Cruisecontrolrb-users] Ruby 1.9 support Message-ID: <201009231654.38443.william.cox@refworks-cos.com> When do you expect to have support for Ruby 1.9 in CruiseControl.rb? Thanks, -Will From alexey.verkhovsky at gmail.com Fri Sep 24 10:31:10 2010 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Fri, 24 Sep 2010 08:31:10 -0600 Subject: [Cruisecontrolrb-users] Ruby 1.9 support In-Reply-To: <201009231654.38443.william.cox@refworks-cos.com> References: <201009231654.38443.william.cox@refworks-cos.com> Message-ID: Good question. I presume, this would involve upgrading Rails. For all situations I'm involved in, switch to 1.9 is far away. But, if anyone submits a patch, I promise to process it pronto. --Alex On Thu, Sep 23, 2010 at 5:54 PM, Will Cox wrote: > > When do you expect to have support for Ruby 1.9 in CruiseControl.rb? > > Thanks, > -Will > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From todd.sedano at sv.cmu.edu Fri Sep 24 18:25:03 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Fri, 24 Sep 2010 15:25:03 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: Chad, Could you provide an example on how to run bundle install from a separate parallel interpreter session kicked off before the tests run? Is this done from the cruise.rake file ? Thanks, Todd On Wed, Jul 14, 2010 at 5:01 PM, Chad Woolley wrote: > On Wed, Jul 14, 2010 at 8:29 AM, Todd Sedano > wrote: > > > > I'm switching to Bundler for a rails 2.3 project. Is there anything > magical > > that I should do on my CI machine? I did do a "sudo gem install bundler." > > I'm guessing that I want to do a "bundle install" each time there is a > > source code change, or even better, a change to the Gemfile. Should I > modify > > my preinitializer.rb ? > > I tried the following, but I still need to periodically log into the > > machine, cd into .cruise/projects/NAME/work and run bundle install. > > Any thoughts? > > > > Modifying cruise.rake like this should help..... maybe we can add this to > > the documentation? > > > > require 'rubygems' > > require 'rake' > > require 'fileutils' > > require "bundler" > > > > desc "Task for cruise Control" > > task :cruise do > > RAILS_ENV = ENV['RAILS_ENV'] = 'test' > > > > sh "bundle install" > > Bundler.setup(:default, :test) > > I'm not sure if this is a problem with bundler or not, but we run > 'bundle install' in a separate parallel interpreter session kicked off > before the tests run (in their own process). Historically (e.g. with > config.gems or geminstaller) , this was necessary to ensure that the > RubyGems cache was not out of date and missing newly-installed gems. > Bundler may not have that problem, though. > > Can anyone prove or disprove that you need to run 'bundle install' in > a separate process from your tests? > > -- Chad > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Fri Sep 24 18:48:26 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 24 Sep 2010 15:48:26 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: On Fri, Sep 24, 2010 at 3:25 PM, Todd Sedano wrote: > Chad, > Could you provide an example on how to run bundle install from a?separate > parallel interpreter session kicked off?before the tests run? Is this done > from the cruise.rake file ? > Thanks, > Todd In a Rails 2.x app, it can be done from cruise.rake, I think it also works from preinitializer.rb. Just put it in a 'system' call. Your best bet is to read up on http://gembundler.com/ and ask on the bundler mailing list if you still have questions. I might tell you something outdated, as I haven't played with Bundler much since 1.0 :) -- Chad From christopher.gaudig at dfki.de Tue Sep 28 10:07:33 2010 From: christopher.gaudig at dfki.de (Christopher Gaudig) Date: Tue, 28 Sep 2010 16:07:33 +0200 Subject: [Cruisecontrolrb-users] permission problem Message-ID: <4CA1F6A5.4090308@dfki.de> Hi! When I run my build script manually (in a shell) everything works fine. But when I try to let CruiseControl.rb run it, I get a permission error. It seems as though CC has different user permissions when running the script from the ones I have when running it manually. A dirty fix is to start CC with sudo, but I would like to run it as a normal user, if possible. Any ideas would be greatly appreciated! Thanks! Regards Chris -- Christopher Gaudig Underwater & Space Robotics DFKI Bremen Robotics Innovation Center Robert-Hooke-Stra?e 5 28359 Bremen, Germany Phone: +49 (0)421 178-45 4119 Fax: +49 (0)421 178-45 4150 E-Mail: christopher.gaudig at dfki.de Web: http://www.dfki.de/robotik ----------------------------------------------------------------------- German Research Center for Artificial Intelligence Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Stra?e 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. W. Wahlster (Vorsitz), Dr. W. Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 From thewoolleyman at gmail.com Tue Sep 28 12:12:07 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 28 Sep 2010 09:12:07 -0700 Subject: [Cruisecontrolrb-users] permission problem In-Reply-To: <4CA1F6A5.4090308@dfki.de> References: <4CA1F6A5.4090308@dfki.de> Message-ID: On Tue, Sep 28, 2010 at 7:07 AM, Christopher Gaudig wrote: > Hi! > > When I run my build script manually (in a shell) everything works fine. But > when I try to let CruiseControl.rb run it, I get a permission error. > > It seems as though CC has different user permissions when running the script > from the ones I have when running it manually. > > A dirty fix is to start CC with sudo, but I would like to run it as a normal > user, if possible. > > Any ideas would be greatly appreciated! Thanks! It should run as whatever user you started it as. Look closely and understand how it is starting, and as what user. Make a dummy build which drops files in /tmp, and inspect permissions. Check your umask. From todd.sedano at sv.cmu.edu Tue Sep 28 15:55:12 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Tue, 28 Sep 2010 12:55:12 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: Chad, I wanted to make sure that I understood your suggestion. I tried to call bundler through a systems call using the "back tick" or `bundle install` (see below) but that didn't work. I believe the main issue is that I need to run bundle install before any of the rake files are executed or call my rake file with "bundle exec rake ..." I'm hoping you can point me in the right direction in the code to make either modification. Maybe the easiest thing to do is to set project.build_command to a shell script. Other than bundle install, what would I put in my shell script to get cruise control to execute what it currently does? (I'm guessing it is a call to cc_build.rake with some arguments.) lib/tasks/cruise.rake require 'rubygems' require 'rake' require 'fileutils' require 'bundler' desc "Task for cruise Control" task :cruise do RAILS_ENV = ENV['RAILS_ENV'] = 'test' `bundle install` Bundler.setup(:default, :test) ... end -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Tue Sep 28 16:09:16 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 28 Sep 2010 13:09:16 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: On Tue, Sep 28, 2010 at 12:55 PM, Todd Sedano wrote: > Chad, > I wanted to make sure that I understood your suggestion. I tried to call > bundler through a systems call using the "back tick" or `bundle install` > ?(see below) but that didn't work. > I believe the main issue is that I need to run bundle install before any of > the rake files are executed or call my rake file with "bundle exec rake > ..." > I'm hoping you can point me in the right direction in the code to make > either modification. Maybe the easiest thing to do is to set > project.build_command to a shell script. Other than bundle install, what > would I put in my shell script to get cruise control to execute what it > currently does? (I'm guessing it is a call to cc_build.rake with some > arguments.) > > lib/tasks/cruise.rake > require 'rubygems' > require 'rake' > require 'fileutils' > require 'bundler' > desc "Task for cruise Control" > task :cruise do > ??RAILS_ENV = ENV['RAILS_ENV'] = 'test' > ??`bundle install` > ??Bundler.setup(:default, :test) > ??... > end Yeah, like I said I'm kinda vague on this. But you DON'T necessarily need to run bundle install BEFORE cruise.rake executes, but you DO need to run it before rails loads the environment (which happens when you run a rails rake task. So what you have may be ok, if the '...' turns into something like "system('rake default') or raise 'rake failed'" I THINK that in rails 2.x, calling bundle install from preinitializer.rb (which runs before environment actually loads) should accomplish the same thing - even though it gets run twice (a quirk of rails 2.x init). Again, I'm almost positive there's some good rails 2.x + bundler docs on the bundler site which are relevant to the latest 1.x bundler release, including what you need to stick in preinitializer.rb. And the bundler list is a better place to ask this stuff (and please feel free to follow up here with a definitive answer). Good luck, -- Chad From todd.sedano at sv.cmu.edu Tue Sep 28 16:49:54 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Tue, 28 Sep 2010 13:49:54 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: For the next person who wants to get cruise control to work with bundler (in a hurry) here's what I did to solve my issue: a) modified my the project to use the shell command (project/cruise_config.rb) project.build_command = '../build_my_app.sh' b) created a project/build_my_app.sh with the contents bundle install ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/Users/tsedano/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" Chad, I thank you for your help and I was very tempted to call, but didn't want to interrupt your day. Thanks for the pointer to the Bundler website. All our projects have followed the directions on this page: http://gembundler.com/rails23.html -- I'm sure there is a way to force bundle install to run everytime that rails is started up, but I didn't want to slow down the development teams. Here is the reason I think I need to call bundle install before the cruise control rake file gets started, I see the error message: ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/Users/tsedano/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" rake aborted! Bundler couldn't find some gems.Did you run `bundle install`? The way I read this error, I think it means that the default cruise control rake is failing and needs bundler to run before it even gets to my rake task for the project. I am not a cruise control developer. so I could be wrong. There could be a more elegant way to solve this. I was hoping that modifying cruisecontrol-1.4.0/tasks/cc_build.rake, but it didn't work for me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Tue Sep 28 17:23:29 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 28 Sep 2010 14:23:29 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: On Tue, Sep 28, 2010 at 1:49 PM, Todd Sedano wrote: > For the next person who wants to get cruise control to work with bundler (in > a hurry) here's what I did to solve my issue: > a) modified my the project to use the shell command > (project/cruise_config.rb) > ??project.build_command = '../build_my_app.sh' > b) created a project/build_my_app.sh with the contents > bundle install > ruby -e "require 'rubygems' rescue nil; require 'rake'; load > '/Users/tsedano/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << > '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" > > Chad, > I thank you for your help and I was very tempted to call, but didn't want to > interrupt your day. > Thanks for the pointer to the Bundler website. All our projects have > followed the directions on this page:?http://gembundler.com/rails23.html -- > I'm sure there is a way to force bundle install to run everytime that rails > is started up, but I didn't want to slow down the development teams. The way we get around this it to check an environment variable - "IS_CI_BOX" - in preinitializer.rb. We only run bundle install if this is true. So, developers have to run it manually, but it always runs on CI. > Here is the reason I think I need to call bundle install before the cruise > control rake file gets started, I see the error message: > > ruby -e "require 'rubygems' rescue nil; require 'rake'; load > '/Users/tsedano/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << > '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" rake aborted! > > Bundler couldn't find some gems.Did you run `bundle install`? Bundler has to be trying to run before it installs gems. This is probably because you didn't call 'bundle install' in preinitializer.rb. You can debug this pretty easily, put some debug statments into preinitializer.rb and make sure 'bundle install' runs before your rails environment (and bundler) attempts to set up the load path. > > The way I read this error, I think it means that the default cruise control > rake is failing and needs bundler to run before it even gets to my rake task > for the project.?I am not a cruise control developer. so I could be wrong. > There could be a more elegant way to solve this. I was hoping that modifying > cruisecontrol-1.4.0/tasks/cc_build.rake, but it didn't work for me. >