Method: Jenkins::Plugin#on

Defined in:
lib/jenkins/plugin.rb

#onLifecycle (readonly)

Add listeners for things that might happen to a plugin. E.g.

plugin.on.start do |plugin|
  #do some setup
end
plugin.on.stop do |plugin|
  #do some teardown
end

Returns:



40
41
42
# File 'lib/jenkins/plugin.rb', line 40

def on
  @on
end