提交 5d52b7f1 编写于 作者: K Kohsuke Kawaguchi

Fixed the unit test assertion failure.

上级 e8c651b6
......@@ -23,6 +23,7 @@
*/
package hudson.cli;
import hudson.console.ModelHyperlinkNote;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Cause.UserIdCause;
......@@ -33,6 +34,7 @@ import hudson.model.ParameterDefinition;
import hudson.Extension;
import hudson.AbortException;
import hudson.model.Item;
import hudson.model.TaskListener;
import hudson.model.queue.QueueTaskFuture;
import hudson.scm.PollingResult.Change;
import hudson.util.EditDistance;
......@@ -155,7 +157,13 @@ public class BuildCommand extends CLICommand {
@Override
public String getShortDescription() {
return "Started by command line by " + startedBy;
return Messages.BuildCommand_CLICause_ShortDescription(startedBy);
}
@Override
public void print(TaskListener listener) {
listener.getLogger().println(Messages.BuildCommand_CLICause_ShortDescription(
ModelHyperlinkNote.encodeTo("/user/" + startedBy, startedBy)));
}
@Override
......
......@@ -44,4 +44,5 @@ SetBuildDisplayNameCommand.ShortDescription=\
WhoAmICommand.ShortDescription=\
Reports your credential and permissions
UpdateJobCommand.ShortDescription=\
Updates the job definition XML from stdin. The opposite of the get-job command
\ No newline at end of file
Updates the job definition XML from stdin. The opposite of the get-job command
BuildCommand.CLICause.ShortDescription=Started by command line by {0}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册