[FIXED JENKINS-26519] Accept Windows text file quasi-symlinks for build numbers.

This commit is contained in:
Jesse Glick committed 2015-01-21 13:17:31 -05:00
1 parent 876d492bd1
commit 056b446480
3 files changed
+19 -2

No files matched your search

@@ -199,7 +199,9 @@ public final class RunIdMigrator {
String name = kid.getName();
try {
String link = Util.resolveSymlink(kid);
if (link == null) {
if (link == null && name.matches("\\d+") && kid.isFile()) { // legacy Windows format
link = FileUtils.readFileToString(kid);
} else if (link == null) {
continue;
}
try {