title: Pass variable path in dir() jenkins pipeline
body: <p>I have created a jenkinsfile in which I need to go into an already created directory. But the problem is that the name of the directory can be variable, eg: <code>dir ('RELEASE/abc/${abc-version}')</code>. The <code>abc-version</code> is passed as a string argument in the pipeline. </p>
  
  <p>The problem is that, on running the pipeline, jenkins creates a directory named as "<code>${abc-version}</code>" rather than passing it as an argument.</p>
  
  <p>I have failed in doing so till now. Is this even possible? Can we pass a variable in the dir step?</p>
  
  <p><strong>EDIT:</strong> I tried with %abc-version% and it still doesn't work. It instead creates a directory with %abc-version% rather than taking it as a variable.</p>
  
  <p>Also, my parameter is like: <code>abc-version</code>. Has it anyting to do with the problem?</p>