Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #127 from recena/JENKINS-29340
[JENKINS-29340] ISVNAuthentication provider did not provide credentials
  • Loading branch information
recena committed Jul 19, 2015
2 parents d951dc1 + 72c3766 commit 91516c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/hudson/scm/SubversionSCM.java
Expand Up @@ -1392,7 +1392,14 @@ else if (project.getLastBuild()!=null) {

final Map<String,ISVNAuthenticationProvider> authProviders = new LinkedHashMap<String,
ISVNAuthenticationProvider>();
for (ModuleLocation loc: getLocations()) {

EnvVars env = null;
Run<?,?> run = project.getLastCompletedBuild();
if (run != null) {
env = run.getEnvironment(listener);
}

for (ModuleLocation loc: getLocations(env, null)) {
String url;
try {
url = loc.getExpandedLocation(project).getSVNURL().toDecodedString();
Expand Down

0 comments on commit 91516c4

Please sign in to comment.