Module: Jenkins::Model::EnvironmentProxy::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#setUp(build, launcher, listener) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/jenkins/model/environment_proxy.rb', line 7

def setUp(build, launcher, listener)
  @object.setup(import(build), import(launcher), import(listener))
  environment_class = self.class.environment_class || DefaultEnvironment
  environment_class.new(self, @plugin, @object).tap do |env|
    env.plugin = @plugin
    env.impl = @object
  end
rescue Jenkins::Model::Build::Halt
  nil
end