Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 538 Bytes
##
# Output a message to the console when the build is to start
# and when it has ended.
class LoggingWrapper < Jenkins::Tasks::BuildWrapper
display_name "Logging Build Wrapper"
# Called some time before the build is to start.
def setup(build, launcher, listener)
listener.info "build will start"
return {} # return an 'environment' object that gets passed to the tear down method
end
# Called some time when the build is finished.
def teardown(build, listener, env)
listener.info "build finished"
end
end