Method: Jenkins::Plugin.instance

Defined in:
lib/jenkins/plugin.rb

.instanceJenkins::Plugin

Get the singleton instance associated with this plugin

This is useful when code in the plugin needs to get a reference to the plugin in which it is running e.g.

Jenkins::Plugin.instance #=> the running plugin

Returns:



76
77
78
# File 'lib/jenkins/plugin.rb', line 76

def self.instance
  @instance
end