Skip to content

Commit

Permalink
Jenkins Credentials filled with 'sonar-gerrti:{GUID}' secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
reda-alaoui committed Jan 15, 2022
1 parent e1cf83f commit db8f264
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public static GerritHttpCredentials get() {

/** @return Empty if username and password are null */
public Optional<String> migrate(String username, Secret password) {
if (Util.fixEmpty(username) == null && password == null) {
if (Util.fixEmpty(username) == null
&& (password == null || Util.fixEmpty(password.getPlainText()) == null)) {
return Optional.empty();
}
StandardUsernamePasswordCredentials credentials =
Expand Down

0 comments on commit db8f264

Please sign in to comment.