8 replies
July 2021

timja Release Officer

don’t we normally use a lowercase first character for bindings? e.g. lowercase usernamePassword, rather than GitUsernamePassword

July 2021

MarkEWaite Jenkins Governance Board

That’s a very good point. I hadn’t thought of the capitalization of the symbol while reviewing.

We probably should add an alias so that gitUsernamePassword is the same as GitUsernamePassword. Don’t want to break users that adopt the current name, GitUsernamePassword, but prefer the more consistent gitUsernamePassword symbol so that it matches other symbols.

1 reply
July 2021 ▶ MarkEWaite

MarkEWaite Jenkins Governance Board

Fix of JENKINS-66214 has been merged in preparation for the release of git plugin 4.8.1. Incremental builds are available for those who want to test it. See the git plugin Jenkins master branch artifacts.

July 2021

MarkEWaite Jenkins Governance Board

Git plugin 4.8.1 has released. It prefers gitUsernamePassword as the symbol and also accepts GitUsernamePassword as an alias.

June 2022

bouniflax

Hello, you should consider escaping characters in the ECHO commands of the askpass script.
Took me a while to figure out why it was not working for me.

not tested:

.replace("%", "%%")
.replace("^", "^^")
.replace("&", "^&")
.replace("<", "^<")
.replace(">", "^>")
.replace("|", "^|")
.replace("'", "^'")
.replace("`", "^`")
.replace(",", "^,")
.replace(";", "^;")
.replace("=", "^=")
.replace("(", "^(")
.replace(")", "^)")
.replace("!", "^!")
.replace("\"", "^\"")

(took the list from here: https://i.stack.imgur.com/NfH6K.png)

1 reply
June 2022 ▶ bouniflax

halkeye Leader

You should file a feature request/bug for this so it doesn’t get lost. Forums are not great for Todo lists

1 reply
June 2022 ▶ halkeye

MarkEWaite Jenkins Governance Board

The issue is logged as JENKINS-47514 - Special characters in password are not escaped properly in git plugin’s withCredentials

June 2022

bouniflax

thanks, added a comment there for windows (echo) escaping as well