title: Teamcity - setParameter does not permanently store updated value in parameter
body: <p>Scenario:</p>
  
  <p>Need to <code>"setParameter"</code> in Teamcity <code>Configuration Variable</code>, so I can use the value the next time the <code>build step</code> is executed.</p>
  
  <p>I have set up a script:</p>
  
  <pre><code>export current_build_date_format="+%%Y-%%m-%%d"
  export current_build_date="$(date $current_build_date_format)"
  echo "##teamcity[setParameter name='latestDeploymentDate' value='$current_build_date']"
  </code></pre>
  
  <p>When I echo <code>%lastestDeploymentDate%</code> in the following step, it correctly prints out for instance <code>'2016-11-07'</code></p>
  
  <p>But, when I go and look at the parameter's value in Teamcity, the value is still what it initially was.</p>
  
  <p>I am running the script on a <code>build agent</code> that is <code>not on the same server</code> as Teamcity. Could this be the reason why I get this behavior ? Or is <code>'setParameter'</code> not meant to store on a permanent basis ?</p>
  
  <p>Thanks in advance </p>