Class: Jenkins::Model::Build::EnvironmentVariables

Inherits:
Object
  • Object
show all
Defined in:
lib/jenkins/model/build.rb

Instance Method Summary collapse

Constructor Details

#initialize(variables) ⇒ EnvironmentVariables

Returns a new instance of EnvironmentVariables.



78
79
80
81
# File 'lib/jenkins/model/build.rb', line 78

def initialize(variables)
  super()
  @variables = variables
end

Instance Method Details

#buildEnvVars(map) ⇒ Object



83
84
85
86
87
# File 'lib/jenkins/model/build.rb', line 83

def buildEnvVars(map)
  @variables.each do |key,value|
    map.put(key.to_s.upcase, value.to_s)
  end
end