title: How to assign value to a variable name which is another variable in groovy?
body: <p>Suppose I have this:</p>
  <pre><code>name = &quot;some_name&quot; 
  address = &quot;some_value&quot;
  </code></pre>
  <p>and I want to assign value of address variable to value of name variable like below:</p>
  <pre><code>some_name = &quot;some_value&quot;
  </code></pre>
  <p>so, that when I do some thing like</p>
  <pre><code>this is &quot;${some_name}&quot;
  </code></pre>
  <p>It should print</p>
  <blockquote>
  <p>this is some_value</p>
  </blockquote>
  <p>I am going this as I need to expose key, value pair of maps(which we get as input from user) as variable so that it would be accessible to Jenkins build.</p>
  <p>I tried:</p>
  <pre><code>&quot;${name}&quot; = &quot;${value}&quot;
  </code></pre>
  <p>But it throws error.</p>
  <p>Is there any way in Groovy, I could achieve this?</p>