提交 5d92b45f 编写于 作者: J Jesse Glick

Run.toString() should use internal, not display names, since it may be used in logging.

UI elements should explicitly ask for .fullDisplayName.
上级 6fd01db4
......@@ -100,7 +100,7 @@ public class MatrixBuild extends AbstractBuild<MatrixProject,MatrixBuild> {
// due to dependencies!
String why = getWhyKeepLog();
if (why!=null) {
sendError(hudson.model.Messages.Run_UnableToDelete(toString(),why),req,rsp);
sendError(hudson.model.Messages.Run_UnableToDelete(getFullDisplayName(), why), req, rsp);
return;
}
......@@ -108,7 +108,7 @@ public class MatrixBuild extends AbstractBuild<MatrixProject,MatrixBuild> {
for(MatrixRun run : runs){
why = run.getWhyKeepLog();
if (why!=null) {
sendError(hudson.model.Messages.Run_UnableToDelete(toString(),why),req,rsp);
sendError(hudson.model.Messages.Run_UnableToDelete(getFullDisplayName(), why), req, rsp);
return;
}
run.delete();
......
......@@ -736,7 +736,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
@Override
public String toString() {
return getFullDisplayName();
return project.getFullName() + " #" + number;
}
@Exported
......@@ -2121,7 +2121,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
// due to dependencies!
String why = getWhyKeepLog();
if (why!=null) {
sendError(Messages.Run_UnableToDelete(toString(),why),req,rsp);
sendError(Messages.Run_UnableToDelete(getFullDisplayName(), why), req, rsp);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册