Skip to content

Commit

Permalink
[FIXED JENKINS-37416] Expand local manifest value
Browse files Browse the repository at this point in the history
Apply the variable expansion added in fc2c8d1 also to the local manifest.
  • Loading branch information
mnonnenmacher committed Aug 15, 2016
1 parent 1c38924 commit e8dc112
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/hudson/plugins/repo/RepoScm.java
Expand Up @@ -814,10 +814,11 @@ private boolean checkoutCode(final Launcher launcher,
FilePath lm = rdir.child("local_manifest.xml");
lm.delete();
if (localManifest != null) {
if (localManifest.startsWith("<?xml")) {
lm.write(localManifest, null);
String expandedLocalManifest = env.expand(localManifest);
if (expandedLocalManifest.startsWith("<?xml")) {
lm.write(expandedLocalManifest, null);
} else {
URL url = new URL(localManifest);
URL url = new URL(expandedLocalManifest);
lm.copyFrom(url);
}
}
Expand Down

0 comments on commit e8dc112

Please sign in to comment.