Browse Source

Fix staging url for official plugins

This was incorrectly setup in #19996, without the version in the staging
build id.
Ryan Ernst 9 years ago
parent
commit
207d3a60e7

+ 1 - 1
core/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java

@@ -212,7 +212,7 @@ class InstallPluginCommand extends SettingCommand {
             final String stagingHash = System.getProperty(PROPERTY_STAGING_ID);
             if (stagingHash != null) {
                 url = String.format(Locale.ROOT,
-                    "https://staging.elastic.co/%1$s/download/elasticsearch-plugins/%2$s/%2$s-%3$s.zip",
+                    "https://staging.elastic.co/%3$s-%1$s/download/elasticsearch-plugins/%2$s/%2$s-%3$s.zip",
                     stagingHash, pluginId, version);
             } else {
                 url = String.format(Locale.ROOT,