Skip to content

Commit

Permalink
add pings
Browse files Browse the repository at this point in the history
  • Loading branch information
ta committed Mar 19, 2015
1 parent d93a965 commit 66fa9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.build!(project)
version, message, author = self.send(method, url, project.branch, b.id)
b.update_attributes({:commit_version => version, :commit_message => message, :commit_author => author})
output = Bundler.with_clean_env do
"Running command: \n#{project.command}\n\n" + `cd #{APP_ROOT}/tmp/#{b.id} && eval #{project.command.gsub("\r\n", "\n")} 2>&1`
"Running command: \n#{project.command}\n\n" + `cd #{APP_ROOT}/tmp/#{b.id} && eval '#{project.command.gsub("\r\n", "\n")}' 2>&1`
end
b.update_attributes({:output => output, :status => $?.success?})
rescue Exception => e
Expand Down

0 comments on commit 66fa9f9

Please sign in to comment.