lib/buildbox/runner.rb in buildbox-0.3.2 vs lib/buildbox/runner.rb in buildbox-0.3.3
- old
+ new
@@ -23,10 +23,11 @@
info "Running script: #{script_path}"
@build.started_at = Time.now.utc
build.output = ""
- result = Command.run(script_path, :environment => @build.env, :directory => directory_path) do |chunk|
+ result = Command.run(script_path, :environment => @build.env, :directory => directory_path) do |command, chunk|
+ build.pid = command.pid
build.output << chunk
end
build.output = result.output
build.exit_status = result.exit_status