Hi,
I downloaded the plugin and made the changes required.But on running the
build i am getting the error as
wrong number of arguments (8 for 6) at
/home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../vendor/plugins/action_mailer_optional_tls/lib/action_mailer_tls.rb:10:in
`start'

I had made the following changes :
Under /vendor/plugins/action_mailer_optional_tls$

  if VERSION == '1.8.6'
      check_auth_args user, secret, authtype if user or secret
    elsif VERSION == '1.8.7'
      check_auth_args user, secret if user or secret
    end

And under site_config Following are the settings :
ActionMailer::Base.smtp_settings = {
   :address =>        "smtp.gmail.com",
   :port =>           587,
   :authentication => :plain,
   #:enable_starttls_auto => true,
   :tls => true,
   :user_name =>      "[email protected]",
   :password =>       "test"
 }


On Mon, Jan 3, 2011 at 8:58 PM, Christopher Gaudig <
[email protected]> wrote:

> Hi!
>
> I think this should help:
> https://cruisecontrolrb.lighthouseapp.com/projects/9150/tickets/209-fail-to-send-auth-tls-mail-ruby-1-8-7
>
> Good luck!
>
>
>
>
> On 01/03/2011 03:24 PM, Amit Kulkarni wrote:
>
>> Hi,
>> I had successfully added a project but i am getting problem in email
>> setup.
>> I am getting error as"Error in plugin EmailNotifier: wrong number of
>> arguments (3 for 2)"
>>
>> This is the log :
>> error] [2011-01-03 19:45:47] Error sending e-mail - current server
>> settings are :
>>   :authentication = :plain
>>   :password = "test123"
>>   :port = 587
>>   :address = "smtp.gmail.com <http://smtp.gmail.com>"
>>   :user_name = "[email protected] <mailto:[email protected]>"
>>
>>   :enable_starttls_auto = true
>> [error] [2011-01-03 19:45:47] Error sending e-mail - current server
>> settings are :
>>   :authentication = :plain
>>   :password = "test123"
>>   :port = 587
>>   :address = "smtp.gmail.com <http://smtp.gmail.com>"
>>   :user_name = "[email protected] <mailto:[email protected]>"
>>
>>   :enable_starttls_auto = true
>> [error] wrong number of arguments (3 for 2)
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../lib/smtp_tls.rb:7:in
>> `check_auth_args'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../lib/smtp_tls.rb:7:in
>> `do_start'
>> [error]   /usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
>> [error]   /usr/lib/ruby/1.8/net/smtp.rb:463:in `start'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in
>> `perform_delivery_smtp'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in
>> `send'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in
>> `deliver!'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in
>> `method_missing'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../lib/builder_plugins/email_notifier.rb:52:in
>> `send'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../lib/builder_plugins/email_notifier.rb:52:in
>> `email'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../lib/builder_plugins/email_notifier.rb:41:in
>> `build_finished'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:334:in
>> `send'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:334:in
>> `notify'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:332:in
>> `collect'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:332:in
>> `notify'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:313:in
>> `build_without_serialization'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:289:in
>> `build'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:268:in
>> `build_if_requested'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/polling_scheduler.rb:26:in
>> `check_build_request_until_next_polling'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/../config/../app/models/polling_scheduler.rb:13:in
>> `run'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/builder:79
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/builder:78:in
>> `catch'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/../../script/builder:78
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/init.rb:47:in
>> `load'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/init.rb:47:in
>> `builder'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/init.rb:10:in
>> `send'
>> [error]
>>
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../lib/cruise_control/init.rb:10:in
>> `run'
>> [error]
>> /home/amit/Desktop/cruisecontrol-1.4.0/public/../config/../cruise:5
>>
>>
>> My site_config file is as follows :
>> ActionMailer::Base.smtp_settings = {
>>    :address => "smtp.gmail.com <http://smtp.gmail.com>",
>>
>>    :port =>           587,
>>    :authentication => :plain,
>>    :enable_starttls_auto => true,
>>    :user_name => "[email protected] <mailto:[email protected]>",
>>
>>    :password => "test123"
>>  }
>>
>> and my cruise_config file is as follows :
>> Project.configure do |project|
>>
>>   # Send email notifications about broken and fixed builds to
>> [email protected], [email protected] (default: send to nobody)
>>     project.email_notifier.emails = ['[email protected]
>> <mailto:[email protected]>']
>>
>>     project.email_success_notifier.emails = ['[email protected]
>> <mailto:[email protected]>']
>>
>>   # Set email 'from' field to [email protected] <mailto:[email protected]>:
>>    project.email_notifier.from = '[email protected] <mailto:[email protected]>'
>>
>>
>>   # Build the project by invoking rake task 'custom'
>>   # project.rake_task = 'custom'
>>
>>   # Build the project by invoking shell script "build_my_app.sh". Keep
>> in mind that when the script is invoked,
>>   # current working directory is
>> <em>[cruise&nbsp;data]</em>/projects/your_project/work, so if you do not
>> keep build_my_app.sh
>>   # in version control, it should be '../build_my_app.sh' instead
>>   # project.build_command = 'build_my_app.sh'
>>
>>   # Ping Subversion for new revisions every 5 minutes (default: 30
>> seconds)
>>   # project.scheduler.polling_interval = 5.minutes
>>
>> end
>>
>> Can you suggest where i am going wrong.Or some gem is missing.
>>
>>
>>
>> _______________________________________________
>> Cruisecontrolrb-users mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>>
>
>
> --
> Christopher Gaudig
> Underwater & Space Robotics
>
> DFKI GmbH
> 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: [email protected]
>
> Weitere Informationen: 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. Wolfgang Wahlster
> (Vorsitzender) Dr. Walter Olthoff
> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
> Amtsgericht Kaiserslautern, HRB 2313
> Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
> USt-Id.Nr.:    DE 148646973
> Steuernummer:  19/673/0060/3
>
>
> _______________________________________________
> 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

Reply via email to