title: Jenkins pipeline - groovy.lang.MissingPropertyException
body: <p>I am trying to write Pipeline script in Jenkins for that I want to store only image name from Docker Repo but IN Unix cmd the code is working but in pipeline script, I am getting an error like: <code>groovy.lang.MissingPropertyException: No such property: x for class: groovy.lang.Binding</code></p>
  
  <pre><code>def  Image_name="$(sudo docker images  | grep -e 'hello-world.*latest' | awk -v x=1 '{print $x}')"
  
  echo $Image_name
  </code></pre>