title: How to create a set of Jenkins variables based on one chosen parameter?
body: <p>I'm using a jenkins freestyle project which has <em>parameterized build</em> enabled.</p>
  
  <p><a href="https://i.stack.imgur.com/8ILBg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ILBg.png" alt="enter image description here"></a></p>
  
  <p>How can I create a set of variables based on the chose parameter?</p>
  
  <p>For example:</p>
  
  <p>When the parameter <code>param1</code> is chosen, I want the set of variables to be equal to</p>
  
  <pre><code>CONFIG=config_a.yml
  AWS_PROFILE=aws-profile-aa
  ANT_BUILD_FILE=buildA
  </code></pre>
  
  <p>When <code>param2</code> is chosen, the above set of variables should be set to</p>
  
  <pre><code>CONFIG=config_b.yml
  AWS_PROFILE=aws-profile-bb
  ANT_BUILD_FILE=buildB
  </code></pre>
  
  <p><code>CONFIG</code>, <code>AWS_PROFILE</code>, and <code>ANT_BUILD_FILE</code> variables will be accessed in <code>Execute shell</code>, and <code>Invoke Ant</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/TscEA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TscEA.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6EQKh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EQKh.png" alt="enter image description here"></a></p>
  
  <p>I don't want to define 3 parameters like this</p>
  
  <p><a href="https://i.stack.imgur.com/WKn0f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WKn0f.png" alt="enter image description here"></a></p>
  
  <p>Because my jenkins project should never build with <code>CONFIG</code>=<code>config_a.yml</code> and <code>AWS_PROFILE</code>=<code>aws-profile-bb</code> together.</p>