提交 7795039e 编写于 作者: J John Pederzolli

additional comments

上级 1c0e94bf
...@@ -352,8 +352,10 @@ public final class RunIdMigrator { ...@@ -352,8 +352,10 @@ public final class RunIdMigrator {
for (File job : jobDirs) { for (File job : jobDirs) {
if (job.getName().equals("builds")) { if (job.getName().equals("builds")) {
// Might be maven modules, matrix builds, etc. which are direct children of job
unmigrateBuildsDir(job); unmigrateBuildsDir(job);
} }
File[] kids = job.listFiles(); File[] kids = job.listFiles();
if (kids == null) { if (kids == null) {
continue; continue;
...@@ -365,7 +367,8 @@ public final class RunIdMigrator { ...@@ -365,7 +367,8 @@ public final class RunIdMigrator {
if (kid.getName().equals("builds")) { if (kid.getName().equals("builds")) {
unmigrateBuildsDir(kid); unmigrateBuildsDir(kid);
} else { } else {
// Might be jobs, modules, promotions, etc.; we assume an ItemGroup.getRootDirFor implementation returns grandchildren. // Might be jobs, modules, promotions, etc.; we assume an ItemGroup.getRootDirFor implementation
// returns grandchildren, unmigrateJobsDir(job) call above handles children.
unmigrateJobsDir(kid); unmigrateJobsDir(kid);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册