title: Jenkins override Parameter value on a Build Step
body: <p>I need to decide value of a parameter after the latest version of the code checked out thats why i cant use the existing parameter types. </p>
  
  <p>First thing came into my mind was to defining some empty parameter and then overriding its value inside a build step but i could not managed to do it. I tried windows batch commands like that but the value is not overriden anyway. </p>
  
  <p>In a Windows Batch Command build step, i tried to override the parameter VERSION with the following command</p>
  
  <pre><code>set VERSION = "2.1"
  </code></pre>
  
  <p>What i am actually trying is adding version name of an android application to the filename reading from AndroidManifest.xml file.</p>
  
  <p>I also wrote some groovy script as following, to get the version name, </p>
  
  <pre><code>def pattern = ~/(?m)android:versionName="([^"]*)"/
  File file = new File("AndroidManifest.xml")
  
  regexMatcher = pattern.matcher(file.text)
  println matcher[0][1]
  </code></pre>