提交 e54ab4be 编写于 作者: J Jesse Glick

fromExternalizableId: diagnosis of nonexistent job.

上级 638e04e0
......@@ -2039,6 +2039,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
int number = Integer.parseInt(id.substring(hash + 1));
Job<?,?> job = Jenkins.getInstance().getItemByFullName(jobName, Job.class);
if (job == null) {
throw new IllegalArgumentException("no such job " + jobName);
}
return job.getBuildByNumber(number);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册