提交 039b359a 编写于 作者: K Kohsuke Kawaguchi

added a note

上级 76efb9ee
...@@ -108,6 +108,7 @@ public class BuildCommand extends CLICommand { ...@@ -108,6 +108,7 @@ public class BuildCommand extends CLICommand {
Future<? extends AbstractBuild> f = job.scheduleBuild2(0, new CLICause(Jenkins.getAuthentication().getName()), a); Future<? extends AbstractBuild> f = job.scheduleBuild2(0, new CLICause(Jenkins.getAuthentication().getName()), a);
if (!sync) return 0; if (!sync) return 0;
// TODO: should we abort the build if the CLI is cancelled?
AbstractBuild b = f.get(); // wait for the completion AbstractBuild b = f.get(); // wait for the completion
stdout.println("Completed "+b.getFullDisplayName()+" : "+b.getResult()); stdout.println("Completed "+b.getFullDisplayName()+" : "+b.getResult());
return b.getResult().ordinal; return b.getResult().ordinal;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册