mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
Merge pull request #491 from ndeloof/JENKINS-13909
[JENKINS-13909] don't keep legacy *.hpi when uploading a plugin
This commit is contained in:
commit
6da5894f49
1 file changed
+1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user