I''m having trouble getting jabber_notifier to work. I read the instructions here: http://cruisecontrolrb.thoughtworks.com/documentation/plugins/ available/jabber_notifier This line is not clear to me:> Copy jabber_notifier_plugin folder to builder_plugins/installedDoes this mean... a. copy the whole folder? b. copy the contents of the folder? I''ve tried it both ways. In both cases I get this error from the `./ cruise start` terminal window (I left open to see log)> [fatal] [2007-06-19 16:54:50] Could not load project configuration: > undefined method `jabber_notifier'' for #<Project:0xb72bac34> in ./ > script/../config/../script/../config/../app/models/project.rb: > 100:in `method_missing''Here is a snippet from my project cruise_control.rb file:> Project.configure do |project| > # Send email notifications about broken and fixed builds > project.email_notifier.emails = %w(broken_build at domain.com) > > # Set email ''from'' field: > project.email_notifier.from = ''cruise at my-dev-box.com'' > > project.jabber_notifier.subscribers = %w(gmail_account_1 at gmail.com) > project.jabber_notifier.account = > ''recipient_gmail_account at gmail.com'' > project.jabber_notifier.password = ''...'' > endI had a working setup previously with email_notifier. I''ve tested the IM accounts separately using iChat and Adium. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070619/fa47de62/attachment.html
Hi, You should copy/move the entire jabber_notifier folder. As you start cruise it scans all the folders under builder_plugins/installed and tries to run init.rb from every found dir to enable the plugins. Make sure that init.rb is present under the following path: cruisecontrolrb-1.1.0/builder_plugins/installed/jabber_notifier/ Cheers, D. On 6/19/07, David James <dj at collectiveinsight.net> wrote:> > I''m having trouble getting jabber_notifier to work. > > I read the instructions here: > http://cruisecontrolrb.thoughtworks.com/documentation/plugins/available/jabber_notifier > > This line is not clear to me: > > Copy jabber_notifier_plugin folder to builder_plugins/installed > > > Does this mean... > a. copy the whole folder? > b. copy the contents of the folder? > > I''ve tried it both ways. In both cases I get this error from the > `./cruise start` terminal window (I left open to see log) > > [fatal] [2007-06-19 16:54:50] Could not load project configuration: > undefined method `jabber_notifier'' for #<Project:0xb72bac34> in > ./script/../config/../script/../config/../app/models/project.rb:100:in > `method_missing'' > > > Here is a snippet from my project cruise_control.rb file: > > Project.configure do |project| > # Send email notifications about broken and fixed builds > project.email_notifier.emails = %w(broken_build at domain.com) > > # Set email ''from'' field: > project.email_notifier.from = ''cruise at my-dev-box.com'' > > project.jabber_notifier.subscribers = %w(gmail_account_1 at gmail.com) > project.jabber_notifier.account = ''recipient_gmail_account at gmail.com'' > project.jabber_notifier.password = ''...'' > end > > > I had a working setup previously with email_notifier. I''ve tested the IM > accounts separately using iChat and Adium. > > Thanks, > David > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070619/355c23e3/attachment.html
Thanks for the clarification. I followed your steps and restarted cruise -- that got rid of my [fatal] error. Yay! However, cc.rb is not yet sending jabber notifications. Nothing shows up in either production.log or ProjectName_builder.log that mentions jabber. Any recommendations on how I can I further debug? Have others had success with using gmail / gtalk accounts? -David On Jun 19, 2007, at 5:05 PM, Dmitry Verkhovsky wrote:> Hi, > > You should copy/move the entire jabber_notifier folder. > As you start cruise it scans all the folders under builder_plugins/ > installed and tries to run init.rb from every found dir to enable > the plugins. > Make sure that init.rb is present under the following path: > cruisecontrolrb-1.1.0/builder_plugins/installed/jabber_notifier/ > > > Cheers, > D. > > On 6/19/07, David James < dj at collectiveinsight.net> wrote: > I''m having trouble getting jabber_notifier to work. > > I read the instructions here: > http://cruisecontrolrb.thoughtworks.com/documentation/plugins/ > available/jabber_notifier > > This line is not clear to me: >> Copy jabber_notifier_plugin folder to builder_plugins/installed > > Does this mean... > a. copy the whole folder? > b. copy the contents of the folder? > > I''ve tried it both ways. In both cases I get this error from the > `./cruise start` terminal window (I left open to see log) >> [fatal] [2007-06-19 16:54:50] Could not load project >> configuration: undefined method `jabber_notifier'' for #<Project: >> 0xb72bac34> in ./script/../config/../script/../config/../app/ >> models/project.rb:100:in `method_missing'' > > Here is a snippet from my project cruise_control.rb file: >> Project.configure do |project| >> # Send email notifications about broken and fixed builds >> project.email_notifier.emails = %w(broken_build at domain.com) >> >> # Set email ''from'' field: >> project.email_notifier.from = ''cruise at my-dev-box.com'' >> >> project.jabber_notifier.subscribers = %w(gmail_account_1 at gmail.com) >> project.jabber_notifier.account = '' >> recipient_gmail_account at gmail.com'' >> project.jabber_notifier.password = ''...'' >> end > > I had a working setup previously with email_notifier. I''ve tested > the IM accounts separately using iChat and Adium. > > Thanks, > David > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070619/ce72286f/attachment.html
Ok, it is working as it should. Turns out that the way that email_notifier and jabber_notififer are setup is slightly different. email_notifier : emails if the build is broken (first time and every time) or when the build is fixed jabber_notifier: emails if the build is broken (first time only) or when the build is fixed -David On Jun 19, 2007, at 5:39 PM, David James wrote:> Thanks for the clarification. I followed your steps and restarted > cruise -- that got rid of my [fatal] error. Yay! > > However, cc.rb is not yet sending jabber notifications. Nothing > shows up in either production.log or ProjectName_builder.log that > mentions jabber. > > Any recommendations on how I can I further debug? > > Have others had success with using gmail / gtalk accounts? > > -David > > On Jun 19, 2007, at 5:05 PM, Dmitry Verkhovsky wrote: > >> Hi, >> >> You should copy/move the entire jabber_notifier folder. >> As you start cruise it scans all the folders under builder_plugins/ >> installed and tries to run init.rb from every found dir to enable >> the plugins. >> Make sure that init.rb is present under the following path: >> cruisecontrolrb-1.1.0/builder_plugins/installed/jabber_notifier/ >> >> >> Cheers, >> D. >> >> On 6/19/07, David James < dj at collectiveinsight.net> wrote: >> I''m having trouble getting jabber_notifier to work. >> >> I read the instructions here: >> http://cruisecontrolrb.thoughtworks.com/documentation/plugins/ >> available/jabber_notifier >> >> This line is not clear to me: >>> Copy jabber_notifier_plugin folder to builder_plugins/installed >> >> Does this mean... >> a. copy the whole folder? >> b. copy the contents of the folder? >> >> I''ve tried it both ways. In both cases I get this error from the >> `./cruise start` terminal window (I left open to see log) >>> [fatal] [2007-06-19 16:54:50] Could not load project >>> configuration: undefined method `jabber_notifier'' for #<Project: >>> 0xb72bac34> in ./script/../config/../script/../config/../app/ >>> models/project.rb:100:in `method_missing'' >> >> Here is a snippet from my project cruise_control.rb file: >>> Project.configure do |project| >>> # Send email notifications about broken and fixed builds >>> project.email_notifier.emails = %w(broken_build at domain.com) >>> >>> # Set email ''from'' field: >>> project.email_notifier.from = ''cruise at my-dev-box.com'' >>> >>> project.jabber_notifier.subscribers = %w >>> (gmail_account_1 at gmail.com) >>> project.jabber_notifier.account = '' >>> recipient_gmail_account at gmail.com'' >>> project.jabber_notifier.password = ''...'' >>> end >> >> I had a working setup previously with email_notifier. I''ve tested >> the IM accounts separately using iChat and Adium. >> >> Thanks, >> David >> >> _______________________________________________ >> 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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070619/151fd3f8/attachment-0001.html
Below should have been sent to the maillist: On 6/19/07, Alexey Verkhovsky <alexey.verkhovsky at gmail.com> wrote:> On 6/19/07, David James <dj at collectiveinsight.net> wrote: > > jabber_notifier: emails if the build is broken (first time only) or when the > > build is fixed > > Sounds like a bug. Is there any reason it shouldn''t do the same as > email notifier?On 6/20/07, David James <dj at collectiveinsight.net> wrote:> After looking at the code, it is either a bug or a design choice :) I would > say that it looks more like a design choice -- there doesn''t appear to be > any "unintended consequence" of the way it is currently written.I mean, it looks like a surprising (therefore, bad) design choice. -- Alex
On 6/20/07, Alexey Verkhovsky <alexey.verkhovsky at gmail.com> wrote:> > On 6/19/07, David James <dj at collectiveinsight.net> wrote: > > > jabber_notifier: emails if the build is broken (first time only) or when the > > > build is fixedOK, I just checked in something to change that. In version 1.2 Jabber notifier will be just as annoying as the email notifier. Also, while we were at that, we added the URL to the message. Now, a patch to do the same thing to Growl notifier would be welcome. I could easily do it myself, except that I have no Mac to test it on, and I don''t like to rely solely on unit tests in these matters. -- Alex Verkhovsky