提交 de5938b3 编写于 作者: N Nicolas De Loof

[JENKINS-13909] don't keep legacy *.hpi when uploading a plugin

even jenkins takes care to load jpi first, this is confusing
上级 91b3d3c5
......@@ -704,6 +704,7 @@ public abstract class PluginManager extends AbstractModelObject {
throw new Failure(hudson.model.Messages.Hudson_NotAPlugin(fileName));
}
final String baseName = FilenameUtils.getBaseName(fileName);
new File(rootDir, baseName + ".hpi").delete(); // don't keep confusing legacy *.hpi
fileItem.write(new File(rootDir, baseName + ".jpi")); // rename all new plugins to *.jpi
fileItem.delete();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册