提交 6da5894f 编写于 作者: N Nicolas De loof

Merge pull request #491 from ndeloof/JENKINS-13909

[JENKINS-13909] don't keep legacy *.hpi when uploading a plugin
......@@ -706,6 +706,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.
先完成此消息的编辑!
想要评论请 注册