Hello,

I downloaded the latest cruisecontrol.rb from github and tried configuring a 
schedule for building every 24 hours.  

Below is my project specific cruise_config.rb.  What's happening is, 
cruisecontrol.rb is not honoring the polling_interval of 1.day and it keeps 
building continuously (true to it's nautre of continuous buids), which I assume 
it's using the default polling interval of 5 minutes.  

Am I missing any other configuration options to make it build only on the 
specified time period?

Also, another question is how does the project.triggered_by 
ScheduledBuildTrigger work? Can I combine this with the polling_interval of 
1.day and always_build or are these mutually exclusive options?

Thanks,
Kannan


cruise_config.rb at project level
--------------------------------------------

# Project-specific configuration for CruiseControl.rb

Project.configure do |project|

  # Send email notifications about broken and fixed builds to ema...@your.site, 
ema...@your.site (default: send to nobody)
  project.email_notifier.emails = ['krishnan.kan...@mydomain.com']

  # Set email 'from' field to j...@doe.com:
  project.email_notifier.from = 'cruisecontro...@mydomain.com'

  # Build the project by invoking rake task 'custom'
  #project.rake_task = 'all_unit_tests'

  # 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 = '/var/ci/cruise/config/build_acceptance_tests.sh'

  # Force the project always build once every day and always build whether 
there are source control changes or not
  project.scheduler.polling_interval = 1.day
  project.scheduler.always_build = true

  #
  # Force the project to check for source control changes every given time 
interval, but NOT build if there are no changes
  # project.triggered_by ScheduledBuildTrigger.new(project, :build_interval => 
5.minutes, :start_time => 2.minutes.from_now)

end
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to