jenkinsci/git-plugin — pull request #239 by elvysborges (2014-07-03 20:30:32+00:00)
Title: [FIXED JENKINS-23675] Expand parameters on repository url 

[FIXED JENKINS-23675] Expand parameters on repository url before associate one url to one credential.

If we use job parameters as a repository URL, the plugin associates the URL with parameter and user credentials. After this, the parameters are expanted to final values, and git tries to connect to final repository and does not find any credentials to use with expanded URL.
I changed the code to associate expanded URL to credentials and it solve this bug.