title: tagging docker images with Jenkins pipeline parameter
body: <p>I am trying to tag my docker image`. I am using Jenkins to do that for me by declaring a string parameter.</p>
  <p>In the <code>docker-compose.yml</code> file I have my image like so:</p>
  <p><code>image: api:&quot;${version}&quot;</code></p>
  <p>I get an error saying the tag is incorrect.</p>
  <p>In my Jenkins pipeline I have a string parameter named <code>version</code> with default <code>LATEST</code>. However, I want to be able to enter <code>v1</code> or <code>v2</code> which will be used as an image tag.</p>
  <p>I am doing it using blue-green deployment.</p>