-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins: 1.580
Git Plugin 2.2.6 (before update 2.2.5)
All plugins up to date (21. September)
Since 2.2.6 ssh credentials on git push seems to have a problem.
When i revert back to 2.2.5 everything works as expected.
I'm using jenkins credential with a ssh key.
Don't know if that has something to say, but I'm using env var's to set the git url, and in the failing log it's not resolved. But I guess the error prints it before the resolution, because the connection itself seems to work, just not the authentication.
I attached a log success.txt (with version 2.2.5) and a failing.txt (version 2.2.6). The only difference is that i reverted the plugin to 2.2.5 and everything worked again.
let me know if you need more information. But maybe so find the problem due the recent changes.
- is duplicated by
-
JENKINS-24879 Git Plugin env variable resolution not working in Git Publisher
-
- Closed
-
- is related to
-
JENKINS-49834 Variable at branch name do not eval
-
- Closed
-
[JENKINS-24786] Since 2.2.6, environment variables are not expanded in git publisher
Assignee | Original: Nicolas De Loof [ ndeloof ] | New: Mark Waite [ markewaite ] |
Summary | Original: Since 2.2.6 ssh credentials on git push seems to have a problem. | New: Since 2.2.6, environment variables are noto expanded in git publisher |
Summary | Original: Since 2.2.6, environment variables are noto expanded in git publisher | New: Since 2.2.6, environment variables are not expanded in git publisher |
Attachment | New: config.xml [ 26908 ] |
Attachment | New: config.xml [ 26909 ] |
Thanks for the report. It appears that 2.2.5 was evaluating the ${TargetUrl} environment variable correctly, and 2.2.6 is not doing that any longer.
A change was introduced in 2.2.5 (change1 and change2) which broadened the evaluation of environment variables in order to fix
JENKINS-22009. It seemed to be too broad and resulted inJENKINS-24467andJENKINS-24516. A change was merged in 2.2.6 which narrowed the scope of the evaluation of environment variables, trying to bring it more into line with the evaluation that happened in 2.2.4 and prior.Was the use case you're using working with plugin versions prior to 2.2.5?