title: Jenkins text parameter - special characters garbled (unwanted variable substitution)
body: <p>I have a job in Jenkins (under Linux) with <a href="https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build" rel="nofollow">build parameter</a> of type "Text". I use the parameter to form contents of a file which is used in build process, with bash "shell execute" step like <code>echo "$TEXTPARAM" &gt; file</code>.</p>
  
  <p>It works quite well if there is general text. But when characters like "$" appears - it behaves strangely.</p>
  
  <p>E. g. text</p>
  
  <pre><code>Some $one and $$two and $$$more bucks and $ bucks $$ that $$$ stand alone and$ after$$ words$$$
  </code></pre>
  
  <p>is transformed into</p>
  
  <pre><code>Some $one and $two and $-sl bucks and $ bucks $ that $$ stand alone and$ after$ words$$
  </code></pre>
  
  <p>though I want the text to appear in file just as it appears in input textbox.</p>
  
  <p>Is it a bug in jenkins (so I should post an issue to their tracker) or am I doing something wrong?</p>
  
  <p><strong>UPDATE</strong>
  I suppose that is due to variable substitution done by Jenkins. I.e all <code>$VARNAME</code>s are substituted by VARNAME values prior to any "shell execute" steps are executed. And this substitution <a href="https://issues.jenkins-ci.org/browse/JENKINS-26916" rel="nofollow">cannot be turned off</a> as for now.</p>