Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ac38eeda53
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.928 kB
# this plugin prints major events like builds starting / passing / failing to console
#
# it is useful in debugging
#
# (this plugin is built in and needs no customization)
#
class MinimalConsoleLogger < BuilderPlugin
def build_started(build)
puts "Build #{build.label} started"
end
def build_finished(build)
puts "Build #{build.label} " + (build.successful? ? 'finished SUCCESSFULLY' : 'FAILED')
end
def new_revisions_detected(new_revisions)
if new_revisions.last.nil?
puts "Changes detected"
else
puts "New revision #{new_revisions.last.number} detected"
end
end
def build_loop_failed(error)
puts "Build loop failed"
puts "#{error.class}: #{error.message}"
puts error.backtrace.map { |line| " #{line}" }.join("\n") rescue nil
end
def configuration_modified
puts "Configuration modification detected"
end
end
Project.plugin :minimal_console_logger
Jump to Line
Something went wrong with that request. Please try again.