#268 new
Chad Woolley

Triggered builds don't always work

Reported by Chad Woolley | July 27th, 2009 @ 01:19 AM

I tried to set up a conditional build trigger as follows in my cruise_config.rb:

  triggers = []
  if File.exists?(File.expand_path(File.dirname(project.path)) + '/../../RubyGems')
    triggers << :RubyGems
  if File.exists?(File.expand_path(File.dirname(project.path)) + '/../../dummyrepo')
    triggers << :dummyrepo
  project.triggered_by *triggers

It works sometimes, but not always. I had to do this hack because it will crash if the trigger project doesn't exist. Maybe it should ignore the trigger if the project doesn't exist, and it would just work. Not sure, haven't looked into the code...

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket