提交 69e1fa2c 编写于 作者: K Kohsuke Kawaguchi

fixed a bug in installing a plugin from URL

上级 aa79d15e
......@@ -55,6 +55,8 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
<tt>install-plugin</tt> CLI command fails to put a file in the right location when installing from URL.
<li class=bug>
Fixed a bug where long post-production processing in matrix jobs can cause incorrect abortion.
</ul>
......
......@@ -95,8 +95,8 @@ public class InstallPluginCommand extends CLICommand {
stdout.println(Messages.InstallPluginCommand_InstallingPluginFromUrl(u));
if (name==null) {
name = u.getPath();
name = name.substring(name.indexOf('/')+1);
name = name.substring(name.indexOf('\\')+1);
name = name.substring(name.lastIndexOf('/')+1);
name = name.substring(name.lastIndexOf('\\')+1);
int idx = name.lastIndexOf('.');
if (idx>0) name = name.substring(0,idx);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册