Class: Jenkins::Model::Build::EnvironmentVariables
- Inherits:
-
Object
- Object
- Jenkins::Model::Build::EnvironmentVariables
- Defined in:
- lib/jenkins/model/build.rb
Instance Method Summary collapse
- #buildEnvVars(map) ⇒ Object
-
#initialize(variables) ⇒ EnvironmentVariables
constructor
A new instance of EnvironmentVariables.
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 |