Open scooter11961 opened 9 years ago
Hi - Thanks for reporting the issue. Maybe you can help me attempt to reproduce?
It seems like something in the #details method is choking.
"#{app.root}/.build_reporter.yml"
file? If so, what does it look like?puts
s the different method calls contained in Middleman::BuildReporter::Reporter#details
? For example, adding the following to line 35 of middleman-build-reporter/lib/middleman-build-reporter/reporter.rb
, re-running bundle exec middleman build
, and providing me the output of each puts
could help us isolate the problem:def details
puts "repo: #{repo.class}"
puts "branch: #{repo.current_branch}"
puts "revision: #{repo.log.first.to_s}"
puts "build_time: #{build_time.to_s}"
puts "options: #{options.to_s}"
puts "details_extension: #{details_extension}"
{
'branch' => repo.current_branch,
'revision' => repo.log.first.to_s,
'build_time' => build_time.to_s,
'version' => options.version
}.merge(details_extension)
end
Thanks!
Hi there. I'm guessing something isn't getting returned from the git call as expected? This works fine on my local mac, fails on Jenkins server. Any ideas?
Console log:
/usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:41:in'
from /usr/local/rvm/gems/ruby-2.1.1@mapquest/bin/ruby_executable_hooks:15:in '
Build step 'Execute shell' marked build as failure
merge': no implicit conversion of false into Hash (TypeError) from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:41:in
details' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:61:inserialize' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:21:in
block in write' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:18:ineach' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/reporter.rb:18:in
write' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-build-reporter-0.0.4/lib/middleman-build-reporter/extension.rb:16:inafter_build' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-core-3.3.6/lib/middleman-core/extension.rb:159:in
block in bind_after_build' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/uber-0.0.8/lib/uber/options.rb:80:ininstance_exec' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/uber-0.0.8/lib/uber/options.rb:80:in
proc!' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/uber-0.0.8/lib/uber/options.rb:69:inevaluate_for' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/uber-0.0.8/lib/uber/options.rb:60:in
evaluate' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/hook.rb:53:inexecute_callback' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/hook.rb:40:in
block in run' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/hook.rb:39:ineach' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/hook.rb:39:in
inject' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/hook.rb:39:inrun' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks.rb:55:in
run_hook_for' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/hooks-0.4.0/lib/hooks/instance_hooks.rb:6:inrun_hook' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-core-3.3.6/lib/middleman-core/cli/build.rb:72:in
build' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/command.rb:27:inrun' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor.rb:359:indispatch' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/base.rb:440:in
start' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-core-3.3.6/lib/middleman-core/cli.rb:72:inmethod_missing' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/command.rb:29:in
run' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/command.rb:126:inrun' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor.rb:359:indispatch' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/thor-0.19.1/lib/thor/base.rb:440:in
start' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-core-3.3.6/lib/middleman-core/cli.rb:20:instart' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/gems/middleman-core-3.3.6/bin/middleman:18:in
<top (required)>' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/bin/middleman:23:inload' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/bin/middleman:23:in
eval' from /usr/local/rvm/gems/ruby-2.1.1@mapquest/bin/ruby_executable_hooks:15:in