title: Git push using jenkins credentials from declarative pipeline
body: <p>I'm using jenkins pipeline (declarative synthax) and I want to push a commit to my remote repository.</p>
  
  <p>Is there any way to accomplish this using the git plugin?
  Here is what I'm currently trying:</p>
  
  <pre><code>withCredentials([usernamePassword(credentialsId: "${GIT_CREDENTIAL_ID}", passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
                          sh "git add ${BRANCH_RENAME}.bundle"
                          sh "echo ${GIT_USERNAME}|||||||${GIT_PASSWORD}"
                          sh "git tag -a backup -m 'Backup branch ${BRANCH} from vega-salesforce to vega-salesforce-backup' "
                          sh('git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${GIT_URL_WITHOUT_HTTPS} --tags')
                      }
  
  </code></pre>
  
  <p>But it does'nt works. 
  I got the following error:`</p>
  
  <pre><code>fatal: unable to access 'https://****:****@myrepositoryurl/mygitgroup/salesforce-backup/': Could not resolve host: ****:clear_password_here; Name or service not known
  </code></pre>
  
  <p>Could anyone help please?
  I though the issue comes from the special characters present in my password but I'm not sure.</p>