#116 ✓resolved
Simon Rozet

Error when the commit identifier can't be retrieved

Reported by Simon Rozet | March 18th, 2009 @ 06:08 PM


def build(commit)
  # ..
  @scm.with_revision(commit.identifier) { run_build_script }
  @build
ensure
  @commit.update_attributes(@scm.info(commit.identifier))
end

The #update_attribute call fails with the following error when the commit identifier can't be retrieved:

/resource.rb:518:in update_attributes'
/usr/lib/ruby/gems/1.8/gems/foca-integrity-0.1.9.1/lib/integrity/project_builder.rb:20:inbuild'
/usr/lib/ruby/gems/1.8/gems/foca-integrity-0.1.9.1/lib/integrity/commit.rb:61:in queue_build'
/usr/lib/ruby/gems/1.8/gems/foca-integrity-0.1.9.1/lib/integrity/project.rb:35:inbuild'
/usr/lib/ruby/gems/1.8/gems/foca-integrity-0.1.9.1/lib/integrity/app.rb:117:in POST /:project/builds'</pre>


Also, I think that part should be refactored.

Comments and changes to this ticket

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 ยป

Automated continuous integration server that doesn't suck.

Shared Ticket Bins

People watching this ticket

Tags

Pages