Module: Jenkins::Model::EnvironmentProxy::EnvironmentWrapper

Included in:
DefaultEnvironment
Defined in:
lib/jenkins/model/environment_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#implObject

Returns the value of attribute impl.



34
35
36
# File 'lib/jenkins/model/environment_proxy.rb', line 34

def impl
  @impl
end

#pluginObject

Returns the value of attribute plugin.



34
35
36
# File 'lib/jenkins/model/environment_proxy.rb', line 34

def plugin
  @plugin
end

Instance Method Details

#tearDown(build, listener) ⇒ Object



36
37
38
39
40
41
# File 'lib/jenkins/model/environment_proxy.rb', line 36

def tearDown(build, listener)
  @impl.teardown(@plugin.import(build), @plugin.import(listener))
  true
rescue Jenkins::Model::Build::Halt
  false
end