title: Escape @ character in jenkins pipeline for git
body: <p>During our jenkins build we are attempting to push to git. Our password has recently changed, and now includes an @ symbol which gives the following error:</p>
  
  <p>The advice seems to be to encode the password, but I am unable to figure out how to do this within our jenkins pipeline. How do I do this?
  (I have also tried using the replace method to swap the @ symbol for %40, but that didn't work.)</p>
  
  <pre><code>def GIT_PASSWORD_R = GIT_PASSWORD.replace('@', '%40') 
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/6172719/escape-character-in-git-proxy-password">Escape @ character in git proxy password</a></p>
  
  <pre><code>def GIT_PASSWORD_R = GIT_PASSWORD.toURL()       
  git push -f https://${GIT_USERNAME}:${GIT_PASSWORD_R}@github.company.com/Product/subProd.git ${VERSION}-SNAPSHOT
  </code></pre>