Skip to content

Commit

Permalink
Warn if git version does not support credentials
Browse files Browse the repository at this point in the history
[JENKINS-21887] The git credentials support was not added until git 1.7.9.

This commit will only provide a warning in the log file, but will
still attempt to execute the credentials operations.
  • Loading branch information
MarkEWaite committed May 2, 2014
1 parent 24903f5 commit 7667ecd
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -1137,6 +1137,8 @@ private String launchCommandWithCredentials(ArgumentListBuilder args, File workD

if (credentials != null) {
listener.getLogger().println("using .gitcredentials to set credentials");
if (!isAtLeastVersion(1,7,9,0))
listener.getLogger().println("[WARNING] Installed git version too old for credentials support");

String urlWithCredentials = getGitCredentialsURL(url, credentials);
store = createGitCredentialsStore(urlWithCredentials);
Expand Down

0 comments on commit 7667ecd

Please sign in to comment.